GBA I/O: Fix IRQ register write checks (fixes #1335)
Vicki Pfau vi@endrift.com
Sun, 03 Mar 2019 14:14:21 -0800
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/gba/io.c
→
src/gba/io.c
@@ -548,16 +548,16 @@ GBAAdjustWaitstates(gba, value);
break; case REG_IE: gba->memory.io[REG_IE >> 1] = value; - GBATestIRQ(gba->cpu, 1); + GBATestIRQ(gba, 1); return; case REG_IF: value = gba->memory.io[REG_IF >> 1] & ~value; gba->memory.io[REG_IF >> 1] = value; - GBATestIRQ(gba->cpu, 1); + GBATestIRQ(gba, 1); return; case REG_IME: gba->memory.io[REG_IME >> 1] = value; - GBATestIRQ(gba->cpu, 1); + GBATestIRQ(gba, 1); return; case REG_MAX: // Some bad interrupt libraries will write to this