all repos — mgba @ edeaba2e7ce3d3cfd66c4381e057c0a18f1b04c8

mGBA Game Boy Advance Emulator

GBA Memory: Remove unused prefetch cruft
Vicki Pfau vi@endrift.com
Mon, 12 Jun 2017 21:07:02 -0700
commit

edeaba2e7ce3d3cfd66c4381e057c0a18f1b04c8

parent

fec4c064475615dcf5593fa8fa8d342913997936

3 files changed, 1 insertions(+), 8 deletions(-)

jump to
M CHANGESCHANGES

@@ -130,6 +130,7 @@ - GB Video: Improved video timings

- Core: List memory segments in the core - Core: Move savestate creation time to extdata - Debugger: Add mDebuggerRunFrame convenience function + - GBA Memory: Remove unused prefetch cruft 0.5.2: (2016-12-31) Bugfixes:
M include/mgba/internal/gba/memory.hinclude/mgba/internal/gba/memory.h

@@ -132,10 +132,6 @@ char waitstatesSeq32[256];

char waitstatesSeq16[256]; char waitstatesNonseq32[256]; char waitstatesNonseq16[256]; - char waitstatesPrefetchSeq32[16]; - char waitstatesPrefetchSeq16[16]; - char waitstatesPrefetchNonseq32[16]; - char waitstatesPrefetchNonseq16[16]; int activeRegion; bool prefetch; uint32_t lastPrefetchedPc;
M src/gba/memory.csrc/gba/memory.c

@@ -59,12 +59,8 @@ int i;

for (i = 0; i < 16; ++i) { gba->memory.waitstatesNonseq16[i] = GBA_BASE_WAITSTATES[i]; gba->memory.waitstatesSeq16[i] = GBA_BASE_WAITSTATES_SEQ[i]; - gba->memory.waitstatesPrefetchNonseq16[i] = GBA_BASE_WAITSTATES[i]; - gba->memory.waitstatesPrefetchSeq16[i] = GBA_BASE_WAITSTATES_SEQ[i]; gba->memory.waitstatesNonseq32[i] = GBA_BASE_WAITSTATES_32[i]; gba->memory.waitstatesSeq32[i] = GBA_BASE_WAITSTATES_SEQ_32[i]; - gba->memory.waitstatesPrefetchNonseq32[i] = GBA_BASE_WAITSTATES_32[i]; - gba->memory.waitstatesPrefetchSeq32[i] = GBA_BASE_WAITSTATES_SEQ_32[i]; } for (; i < 256; ++i) { gba->memory.waitstatesNonseq16[i] = 0;