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.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/linux/linux_threadinfo.hh b/kern/linux/linux_threadinfo.hh
index a1c378d6a..f2fb10483 100644
--- a/kern/linux/linux_threadinfo.hh
+++ b/kern/linux/linux_threadinfo.hh
@@ -53,7 +53,7 @@ class ThreadInfo
* thread_info struct. So we can get the address by masking off
* the lower 14 bits.
*/
- current = xc->regs.intRegFile[TheISA::StackPointerReg] & ~0x3fff;
+ current = xc->readIntReg(TheISA::StackPointerReg) & ~0x3fff;
return VPtr<thread_info>(xc, current);
}