Ensure CPSR privilege gets updated in MSR

This commit is contained in:
Jeffrey Pfau 2013-04-08 00:21:28 -07:00
parent 37ad6218da
commit 67c00f378a
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ DEFINE_INSTRUCTION_ARM(MSR, \
} \
if (cpu->privilegeMode != MODE_USER && (mask & PSR_PRIV_MASK)) { \
ARMSetPrivilegeMode(cpu, (enum PrivilegeMode) ((operand & 0x0000000F) | 0x00000010)); \
cpu->cpsr.priv = cpu->privilegeMode; \
cpu->cpsr.i = operand & 0x00000080; \
cpu->cpsr.f = operand & 0x00000040; \
} \