From 0f20230a90c3150194b8ffc71960dd154546eac6 Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Sun, 1 Dec 2024 15:03:14 -0500 Subject: [PATCH] fix cache streaming --- src/CP15.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CP15.cpp b/src/CP15.cpp index 085ba6fa..92b41e25 100644 --- a/src/CP15.cpp +++ b/src/CP15.cpp @@ -553,7 +553,7 @@ u32 ARMv5::ICacheLookup(const u32 addr) u8 linepos = (addr & 0x1F) >> 2; // technically this is one too low, but we want that actually - u32 cycles = ns + (seq * linepos); + u64 cycles = ns + (seq * linepos); NDS.ARM9Timestamp = cycles += NDS.ARM9Timestamp; if (NDS.ARM9Timestamp < TimestampActual) NDS.ARM9Timestamp = TimestampActual; @@ -805,7 +805,7 @@ u32 ARMv5::DCacheLookup(const u32 addr) u8 linepos = (addr & 0x1F) >> 2; // technically this is one too low, but we want that actually - u32 cycles = ns + (seq * linepos); + u64 cycles = ns + (seq * linepos); DataCycles = cycles; cycles += NDS.ARM9Timestamp;