ARM: Zero the micropc when vectoring to a fault.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:10 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:10 +0000 (12:58 -0500)
src/arch/arm/faults.cc

index 9b365790913c201d6592e6bba6bab0e6c5a799a9..8428931a70909e6f95e6c382e4324b69c2e150d7 100644 (file)
@@ -141,6 +141,7 @@ ArmFaultBase::invoke(ThreadContext *tc)
     Addr newPc = getVector(tc) | (sctlr.te ? (ULL(1) << PcTBitShift) : 0);
     tc->setPC(newPc);
     tc->setNextPC(newPc + cpsr.t ? 2 : 4 );
+    tc->setMicroPC(0);
 }
 
 #else