diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-10-31 14:44:23 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-10-31 14:44:23 -0500 |
commit | 2fa535f7407ad2a7e1e2ec807b72d11a81fa25aa (patch) | |
tree | 29a33ada141edad37b9304227f411a0195520869 /src/cpu/simple/base.cc | |
parent | e912080d12666482a942eae354e783c3d666c6c9 (diff) | |
parent | 7f39644609e19ada9e94c9bbb09c3e625fa6e8ed (diff) | |
download | gem5-2fa535f7407ad2a7e1e2ec807b72d11a81fa25aa.tar.xz |
Merge ktlim@zizzer:/bk/newmem
into zamp.eecs.umich.edu:/z/ktlim2/clean/o3-merge/newmem
--HG--
extra : convert_revision : 88fa7ae5cc32be068787ee381fae9d8de0e9bd0f
Diffstat (limited to 'src/cpu/simple/base.cc')
-rw-r--r-- | src/cpu/simple/base.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index cbb3980cb..253d33243 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -401,13 +401,15 @@ BaseSimpleCPU::preExecute() StaticInstPtr instPtr = StaticInst::decode(makeExtMI(inst, thread->getTC())); if (instPtr->isMacroOp()) { curMacroStaticInst = instPtr; - curStaticInst = curMacroStaticInst->fetchMicroOp(0); + curStaticInst = curMacroStaticInst-> + fetchMicroOp(thread->readMicroPC()); } else { curStaticInst = instPtr; } } else { //Read the next micro op from the macro op - curStaticInst = curMacroStaticInst->fetchMicroOp(thread->readMicroPC()); + curStaticInst = curMacroStaticInst-> + fetchMicroOp(thread->readMicroPC()); } |