all repos — mgba @ 67c00f378ae0e7a5a516e9b07f863def12c72169

mGBA Game Boy Advance Emulator

Ensure CPSR privilege gets updated in MSR
Jeffrey Pfau jeffrey@endrift.com
Mon, 08 Apr 2013 00:21:28 -0700
commit

67c00f378ae0e7a5a516e9b07f863def12c72169

parent

37ad6218da6bb4a0d325303ac121d1ab614a29ef

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/isa-arm.csrc/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; \ } \