From fe46116fc6ea808e7cc4dae2ae8e81fb7bc12e08 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:34:16 -0600 Subject: [PATCH] update core --- mupen64plus-core/src/device/r4300/dcache.c | 2 +- mupen64plus-core/src/device/r4300/icache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mupen64plus-core/src/device/r4300/dcache.c b/mupen64plus-core/src/device/r4300/dcache.c index 831b1e9..0147324 100644 --- a/mupen64plus-core/src/device/r4300/dcache.c +++ b/mupen64plus-core/src/device/r4300/dcache.c @@ -34,7 +34,7 @@ void poweron_dcache(struct datacache *lines) void dcache_writeback(struct r4300_core* r4300, struct datacache *line) { - cp0_dcb_interlock(r4300, rdram_calculate_cycles(20)); + cp0_dcb_interlock(r4300, rdram_calculate_cycles(16)); line->dirty = 0; uint32_t cache_address = (line->tag | line->index) & UINT32_C(0x1ffffffc); invalidate_r4300_cached_code(r4300, R4300_KSEG0 + cache_address, 16); diff --git a/mupen64plus-core/src/device/r4300/icache.c b/mupen64plus-core/src/device/r4300/icache.c index 41600cd..a3d9dc1 100644 --- a/mupen64plus-core/src/device/r4300/icache.c +++ b/mupen64plus-core/src/device/r4300/icache.c @@ -35,7 +35,7 @@ void poweron_icache(struct instcache *lines) void icache_writeback(struct r4300_core* r4300, struct instcache *line) { - cp0_icb_interlock(r4300, rdram_calculate_cycles(40)); + cp0_icb_interlock(r4300, rdram_calculate_cycles(32)); uint32_t cache_address = (line->tag | line->index) & UINT32_C(0x1ffffffc); invalidate_r4300_cached_code(r4300, R4300_KSEG0 + cache_address, 32); invalidate_r4300_cached_code(r4300, R4300_KSEG1 + cache_address, 32);