-Fixed a few things that are causing compilation issues in VC++

This commit is contained in:
cyberwarriorx 2006-11-19 17:33:42 +00:00
parent 1a4d910526
commit d3359010cc
1 changed files with 4 additions and 2 deletions

View File

@ -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;