summaryrefslogtreecommitdiff
path: root/src/arch/generic/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/generic/linux')
-rw-r--r--src/arch/generic/linux/threadinfo.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/generic/linux/threadinfo.hh b/src/arch/generic/linux/threadinfo.hh
index 89db36a30..1595da499 100644
--- a/src/arch/generic/linux/threadinfo.hh
+++ b/src/arch/generic/linux/threadinfo.hh
@@ -87,7 +87,7 @@ class ThreadInfo
addr = tc->readMiscRegNoEffect(TheISA::CurThreadInfoReg);
PortProxy &p = tc->getPhysProxy();
- p.readBlob(addr, (uint8_t *)&sp, sizeof(Addr));
+ p.readBlob(addr, &sp, sizeof(Addr));
return sp & ~ULL(0x3fff);
}