mirror of
https://github.com/simple64/simple64.git
synced 2026-09-04 03:14:32 +02:00
update core
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user