Skip to content

Commit

Permalink
Simplify prefetcher logic
Browse files Browse the repository at this point in the history
  • Loading branch information
png183 committed Feb 10, 2025
1 parent 49e0eb0 commit ebd029f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ares/gba/cpu/prefetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ auto CPU::prefetchSync(n32 address) -> void {

auto CPU::prefetchStep(u32 clocks) -> void {
step(clocks);
if(!wait.prefetch || context.dmaRomAccess || prefetch.stopped) return;
if(!wait.prefetch || prefetch.stopped) return;

while(!prefetch.full() && clocks--) {
if(--prefetch.wait) continue;
Expand Down

0 comments on commit ebd029f

Please sign in to comment.