From c2ee50288bb14a2b7673154f67d9bf8868b4d502 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 5 Sep 2020 15:53:31 -0700 Subject: [PATCH] GBA I/O: Green swap register should be readable --- CHANGES | 1 + src/gba/io.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index dc2e600c4..899042f7b 100644 --- a/CHANGES +++ b/CHANGES @@ -31,6 +31,7 @@ Emulation fixes: - GBA DMA: Linger last DMA on bus (fixes mgba.io/i/301 and mgba.io/i/1320) - GBA DMA: Fix ordering and timing of overlapping DMAs - GBA Hardware: Fix GB Player detection on big endian platforms + - GBA I/O: Green swap register should be readable - GBA Memory: Improve gamepak prefetch timing - GBA Memory: Stall on VRAM access in mode 2 (fixes mgba.io/i/190) - GBA Memory: Improve robustness of Matrix memory support diff --git a/src/gba/io.c b/src/gba/io.c index 87c519d4d..6a1037bf3 100644 --- a/src/gba/io.c +++ b/src/gba/io.c @@ -850,6 +850,7 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) { } // Fall through case REG_DISPCNT: + case REG_GREENSWP: case REG_DISPSTAT: case REG_VCOUNT: case REG_BG0CNT: