ARM: Fix IT state not updating when an instruction memory instruction faults.

This commit is contained in:
Min Kyu Jeong 2010-06-02 12:58:18 -05:00
parent 4325519fc5
commit 5d5bf8cbc7

View file

@ -342,6 +342,8 @@ def template LoadInitiateAcc {{
if (fault == NoFault) {
fault = xc->read(EA, (uint%(mem_acc_size)d_t &)Mem, memAccessFlags);
}
} else if (fault == NoFault && machInst.itstateMask != 0) {
xc->setMiscReg(MISCREG_ITSTATE, machInst.newItstate);
}
return fault;