From: Gabe Black Date: Wed, 2 Jun 2010 17:58:10 +0000 (-0500) Subject: ARM: Zero the micropc when vectoring to a fault. X-Git-Tag: stable_2012_02_02~1198 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6cb6f1874184c72bcf97e7156c5c650be85a7fe;p=gem5.git ARM: Zero the micropc when vectoring to a fault. --- diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc index 9b3657909..8428931a7 100644 --- a/src/arch/arm/faults.cc +++ b/src/arch/arm/faults.cc @@ -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