GBA: Reset WAITCNT properly

This commit is contained in:
Vicki Pfau 2018-09-01 14:44:43 -07:00
parent 45873a32f6
commit 94ec760a9f
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Bugfixes:
- GBA BIOS: Fix BitUnPack final byte
- GB I/O: DMA register is R/W
- GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1126)
- GBA: Reset WAITCNT properly
Misc:
- FFmpeg: Support libswresample (fixes mgba.io/i/1120, mgba.io/b/123)

View File

@ -113,6 +113,7 @@ void GBAMemoryReset(struct GBA* gba) {
gba->memory.iwram = anonymousMemoryMap(SIZE_WORKING_IRAM);
memset(gba->memory.io, 0, sizeof(gba->memory.io));
GBAAdjustWaitstates(gba, 0);
gba->memory.prefetch = false;
gba->memory.lastPrefetchedPc = 0;