summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorYi Xiang <yix@colostate.edu>2011-03-08 21:43:11 -0800
committerYi Xiang <yix@colostate.edu>2011-03-08 21:43:11 -0800
commitd7b55088756c2e26a7fd6375c08689cfdfa1ed33 (patch)
tree85d607763a55af33a19b9c880ed847627f149c0e /src/arch
parent674b94128284796c90f12e16d5029ce693464deb (diff)
downloadgem5-d7b55088756c2e26a7fd6375c08689cfdfa1ed33.tar.xz
Alpha: Fix the datatypes of some values read from the simulated kernel.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/alpha/linux/threadinfo.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/alpha/linux/threadinfo.hh b/src/arch/alpha/linux/threadinfo.hh
index db723bed3..6144cb773 100644
--- a/src/arch/alpha/linux/threadinfo.hh
+++ b/src/arch/alpha/linux/threadinfo.hh
@@ -103,7 +103,7 @@ class ThreadInfo
int32_t
curTaskPID(Addr thread_info = 0)
{
- Addr offset;
+ int32_t offset;
if (!get_data("task_struct_pid", offset))
return -1;
@@ -116,7 +116,7 @@ class ThreadInfo
int64_t
curTaskStart(Addr thread_info = 0)
{
- Addr offset;
+ int32_t offset;
if (!get_data("task_struct_start_time", offset))
return -1;