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);