From d3359010cc8d93259dfc6fa33aeea563b09e7127 Mon Sep 17 00:00:00 2001 From: cyberwarriorx Date: Sun, 19 Nov 2006 17:33:42 +0000 Subject: [PATCH] -Fixed a few things that are causing compilation issues in VC++ --- desmume/src/armcpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/armcpu.c b/desmume/src/armcpu.c index 55ecc3ae1..764b6ca7b 100644 --- a/desmume/src/armcpu.c +++ b/desmume/src/armcpu.c @@ -223,8 +223,9 @@ u32 armcpu_exec(armcpu_t *armcpu) BOOL armcpu_irqExeption(armcpu_t *armcpu) { + Status_Reg tmp; if(armcpu->CPSR.bits.I) return FALSE; - Status_Reg tmp = armcpu->CPSR; + tmp = armcpu->CPSR; armcpu_switchMode(armcpu, IRQ); armcpu->R[14] = armcpu->instruct_adr + 4; armcpu->SPSR = tmp; @@ -239,8 +240,9 @@ BOOL armcpu_irqExeption(armcpu_t *armcpu) BOOL armcpu_prefetchExeption(armcpu_t *armcpu) { + Status_Reg tmp; if(armcpu->CPSR.bits.I) return FALSE; - Status_Reg tmp = armcpu->CPSR; + tmp = armcpu->CPSR; armcpu_switchMode(armcpu, ABT); armcpu->R[14] = armcpu->instruct_adr + 4; armcpu->SPSR = tmp;