ARM: Set CPSR.E to SCTLR.EE on faults.

This commit is contained in:
Gabe Black
2010-06-02 12:58:10 -05:00
parent 683421e0c6
commit 524a8195e1

View File

@@ -111,6 +111,7 @@ ArmFaultBase::invoke(ThreadContext *tc)
cpsr.a = cpsr.a | abortDisable();
cpsr.f = cpsr.f | fiqDisable();
cpsr.i = 1;
cpsr.e = sctlr.ee;
tc->setMiscReg(MISCREG_CPSR, cpsr);
tc->setIntReg(INTREG_LR, tc->readPC() +
(saved_cpsr.t ? thumbPcOffset() : armPcOffset()));