Alpha: Fix the datatypes of some values read from the simulated kernel.
authorYi Xiang <yix@colostate.edu>
Wed, 9 Mar 2011 05:43:11 +0000 (21:43 -0800)
committerYi Xiang <yix@colostate.edu>
Wed, 9 Mar 2011 05:43:11 +0000 (21:43 -0800)
src/arch/alpha/linux/threadinfo.hh

index db723bed3a018647d923f0e2fcb36bee4e9b354d..6144cb773043d4e507d47b61526c4a3de4391b1c 100644 (file)
@@ -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;