CPU: Don't always reset the micro pc on faults. Let the faults handle it.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 1 Feb 2009 08:30:54 +0000 (00:30 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 1 Feb 2009 08:30:54 +0000 (00:30 -0800)
src/cpu/simple/base.cc

index 9af5d01504f969d02ea7d4cfbd2e64f3484e7f2f..b1a77247ffd72dfe018a93a8a452edd0b7066ef4 100644 (file)
@@ -472,8 +472,6 @@ BaseSimpleCPU::advancePC(Fault fault)
     if (fault != NoFault) {
         curMacroStaticInst = StaticInst::nullStaticInstPtr;
         predecoder.reset();
-        thread->setMicroPC(normalMicroPC(0));
-        thread->setNextMicroPC(normalMicroPC(1));
         fault->invoke(tc);
     } else {
         //If we're at the last micro op for this instruction