mirror of
https://github.com/simple64/simple64.git
synced 2026-11-16 09:23:15 +01:00
update core
This commit is contained in:
1 parent
32a26196b4
commit
339c093688
2 files changed
+4
-2
No files matched your search
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "device/r4300/r4300_core.h"
|
||||
#include "device/rdram/rdram.h"
|
||||
#include "device/memory/memory.h"
|
||||
|
||||
void poweron_dcache(struct datacache *lines)
|
||||
@@ -33,7 +34,7 @@ void poweron_dcache(struct datacache *lines)
|
||||
|
||||
void dcache_writeback(struct r4300_core* r4300, struct datacache *line)
|
||||
{
|
||||
// cp0_dcb_interlock(r4300, 24);
|
||||
cp0_dcb_interlock(r4300, rdram_calculate_cycles(16));
|
||||
line->dirty = 0;
|
||||
uint32_t cache_address = line->tag | line->index;
|
||||
invalidate_r4300_cached_code(r4300, R4300_KSEG0 + cache_address, 16);
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "device/r4300/r4300_core.h"
|
||||
#include "device/rdram/rdram.h"
|
||||
#include "device/r4300/cached_interp.h"
|
||||
#include "device/memory/memory.h"
|
||||
#include "device/rcp/rsp/rsp_core.h"
|
||||
@@ -35,7 +36,7 @@ void poweron_icache(struct instcache *lines)
|
||||
|
||||
void icache_writeback(struct r4300_core* r4300, struct instcache *line)
|
||||
{
|
||||
// cp0_icb_interlock(r4300, 48);
|
||||
cp0_icb_interlock(r4300, rdram_calculate_cycles(32));
|
||||
uint32_t cache_address = line->tag | line->index;
|
||||
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