In the case that we generate a fault (e.g. a tlb miss) on a microcoded instruction...
authorAli Saidi <saidi@eecs.umich.edu>
Wed, 17 Jan 2007 00:12:33 +0000 (19:12 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Wed, 17 Jan 2007 00:12:33 +0000 (19:12 -0500)
This way we'll jump immediately to the handler

--HG--
extra : convert_revision : 36218d3a5c2342337e66e1229ea2219533efd41e

src/cpu/simple/base.cc

index 4e5754bbb97b266e2c8e2703ffb492b0d4caf060..ddccc5a9b8670e506a778f98656866231a20f1d5 100644 (file)
@@ -437,6 +437,7 @@ void
 BaseSimpleCPU::advancePC(Fault fault)
 {
     if (fault != NoFault) {
+        curMacroStaticInst = StaticInst::nullStaticInstPtr;
         fault->invoke(tc);
     } else {
         //If we're at the last micro op for this instruction