summaryrefslogtreecommitdiff
path: root/kern/linux/linux_threadinfo.hh
diff options
context:
space:
mode:
Diffstat (limited to 'kern/linux/linux_threadinfo.hh')
-rw-r--r--kern/linux/linux_threadinfo.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/linux/linux_threadinfo.hh b/kern/linux/linux_threadinfo.hh
index 9bab1dc49..f20188360 100644
--- a/kern/linux/linux_threadinfo.hh
+++ b/kern/linux/linux_threadinfo.hh
@@ -37,6 +37,8 @@ namespace Linux {
class ThreadInfo
{
+ protected:
+ typedef TheISA::Addr Addr;
private:
ExecContext *xc;
@@ -53,7 +55,7 @@ class ThreadInfo
* thread_info struct. So we can get the address by masking off
* the lower 14 bits.
*/
- current = xc->regs.intRegFile[StackPointerReg] & ~0x3fff;
+ current = xc->regs.intRegFile[TheISA::StackPointerReg] & ~0x3fff;
return VPtr<thread_info>(xc, current);
}