XC needs to get memory from the process.
authorKevin Lim <ktlim@umich.edu>
Wed, 3 May 2006 19:51:53 +0000 (15:51 -0400)
committerKevin Lim <ktlim@umich.edu>
Wed, 3 May 2006 19:51:53 +0000 (15:51 -0400)
--HG--
extra : convert_revision : a2c014276824255a896a7e353f919fe81071091e

cpu/cpu_exec_context.cc

index 363244e60ed71b92d98df9b071a9dabc0e0f7441..4400cf842a39700cb1a8857a6a1231b9e8d58009 100644 (file)
@@ -85,7 +85,7 @@ CPUExecContext::CPUExecContext(BaseCPU *_cpu, int _thread_num,
                          Process *_process, int _asid)
     : _status(ExecContext::Unallocated),
       cpu(_cpu), thread_num(_thread_num), cpu_id(-1), lastActivate(0),
-      lastSuspend(0), process(_process), mem(NULL), asid(_asid),
+      lastSuspend(0), process(_process), mem(process->getMemory()), asid(_asid),
       func_exe_inst(0), storeCondFailures(0)
 {
     memset(&regs, 0, sizeof(RegFile));