summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-05-03 15:51:53 -0400
committerKevin Lim <ktlim@umich.edu>2006-05-03 15:51:53 -0400
commit32a52949834a5524c67a5a8d697b7e769138dc0f (patch)
tree0150da92be1fb290c4c3614d86c87ca50ca1786b /cpu
parentd363d5aad72b34769c753752a779a13e11532fd8 (diff)
downloadgem5-32a52949834a5524c67a5a8d697b7e769138dc0f.tar.xz
XC needs to get memory from the process.
--HG-- extra : convert_revision : a2c014276824255a896a7e353f919fe81071091e
Diffstat (limited to 'cpu')
-rw-r--r--cpu/cpu_exec_context.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/cpu_exec_context.cc b/cpu/cpu_exec_context.cc
index 363244e60..4400cf842 100644
--- a/cpu/cpu_exec_context.cc
+++ b/cpu/cpu_exec_context.cc
@@ -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));