ARM: Zero the micropc when vectoring to a fault.
This commit is contained in:
parent
1d5233958a
commit
b6cb6f1874
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ ArmFaultBase::invoke(ThreadContext *tc)
|
||||||
Addr newPc = getVector(tc) | (sctlr.te ? (ULL(1) << PcTBitShift) : 0);
|
Addr newPc = getVector(tc) | (sctlr.te ? (ULL(1) << PcTBitShift) : 0);
|
||||||
tc->setPC(newPc);
|
tc->setPC(newPc);
|
||||||
tc->setNextPC(newPc + cpsr.t ? 2 : 4 );
|
tc->setNextPC(newPc + cpsr.t ? 2 : 4 );
|
||||||
|
tc->setMicroPC(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue