update core

This commit is contained in:
Logan McNaughton
2023-08-11 13:34:16 -06:00
parent 565cb79ca8
commit fe46116fc6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);