GBA BIOS: Fix HuffUnComp boundary conditions
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Jan 2015 01:35:02 -0800
2 files changed,
1 insertions(+),
5 deletions(-)
M
CHANGES
→
CHANGES
@@ -58,6 +58,7 @@ - GBA Memory: Fix initial DMA state
- GBA BIOS: Fix BIOS prefetch after returning from an IRQ - GBA BIOS: Fix BIOS prefetch after reset - GBA Memory: Fix alignment of open bus 8- and 16-bit loads + - GBA BIOS: Fix HuffUnComp boundary conditions Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it
M
src/gba/gba-bios.c
→
src/gba/gba-bios.c
@@ -397,8 +397,6 @@ if (32 % bits || bits == 1) {
GBALog(gba, GBA_LOG_STUB, "Unimplemented unaligned Huffman"); return; } - int padding = (4 - remaining) & 0x3; - remaining &= 0xFFFFFFFC; // We assume the signature byte (0x20) is correct int treesize = (cpu->memory.load8(cpu, source + 4, 0) << 1) + 1; int block = 0;@@ -448,9 +446,6 @@ block = 0;
} } - } - if (padding) { - cpu->memory.store32(cpu, dest, block, 0); } cpu->gprs[0] = source; cpu->gprs[1] = dest;