From 633a87269ad02928d7d2509ce34eeb2cdd99eb3e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 19 Apr 2013 21:09:00 -0700 Subject: [PATCH] Initialize cpu->privilegeMode --- src/arm/arm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arm/arm.c b/src/arm/arm.c index cf3de6c01..a2f0bdea2 100644 --- a/src/arm/arm.c +++ b/src/arm/arm.c @@ -96,6 +96,7 @@ void ARMReset(struct ARMCore* cpu) { cpu->bankedSPSRs[i] = 0; } + cpu->privilegeMode = MODE_SYSTEM; cpu->cpsr.packed = MODE_SYSTEM; cpu->spsr.packed = 0;