Ensure CPSR privilege gets updated in MSR
Jeffrey Pfau jeffrey@endrift.com
Mon, 08 Apr 2013 00:21:28 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/isa-arm.c
→
src/isa-arm.c
@@ -404,6 +404,7 @@ cpu->cpsr.v = operand & 0x10000000; \
} \ 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; \ } \