Make sure to rewrite active region data when jumping to IRQ handler

This commit is contained in:
Jeffrey Pfau 2013-04-17 00:24:00 -07:00
parent 45fcd0fcb5
commit f30b367c7e
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ void ARMRaiseIRQ(struct ARMCore* cpu) {
cpu->spsr = cpsr;
cpu->gprs[ARM_LR] = cpu->gprs[ARM_PC] - instructionWidth + WORD_SIZE_ARM;
cpu->gprs[ARM_PC] = BASE_IRQ + WORD_SIZE_ARM;
cpu->memory->setActiveRegion(cpu->memory, cpu->gprs[ARM_PC]);
_ARMSetMode(cpu, MODE_ARM);
cpu->cpsr.i = 1;
}