From d7b55088756c2e26a7fd6375c08689cfdfa1ed33 Mon Sep 17 00:00:00 2001 From: Yi Xiang Date: Tue, 8 Mar 2011 21:43:11 -0800 Subject: [PATCH] Alpha: Fix the datatypes of some values read from the simulated kernel. --- src/arch/alpha/linux/threadinfo.hh | 4 ++-- 1 file 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;