X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fnew_dynarec%2Femu_if.c;h=1733a2a52cb6d3369ce87c913681de1695a4cadc;hb=943a507a4156b8f5b00e4431152e41eeb4dc6f3d;hp=092c8ae90bcb5241756a1bf8b11233c1abee77e0;hpb=003cfc63c69b3e900de768317354dfb80bbf6a55;p=pcsx_rearmed.git diff --git a/libpcsxcore/new_dynarec/emu_if.c b/libpcsxcore/new_dynarec/emu_if.c index 092c8ae9..1733a2a5 100644 --- a/libpcsxcore/new_dynarec/emu_if.c +++ b/libpcsxcore/new_dynarec/emu_if.c @@ -378,7 +378,7 @@ static void ari64_clear(u32 addr, u32 size) { u32 start, end, main_ram; - size *= 4; /* PCSX uses DMA units */ + size *= 4; /* PCSX uses DMA units (words) */ evprintf("ari64_clear %08x %04x\n", addr, size); @@ -393,6 +393,24 @@ static void ari64_clear(u32 addr, u32 size) invalidate_block(start); } +#ifdef ICACHE_EMULATION +static void ari64_notify(int note, void *data) { + /* + Should be fixed when ARM dynarec has proper icache emulation. + switch (note) + { + case R3000ACPU_NOTIFY_CACHE_UNISOLATED: + break; + case R3000ACPU_NOTIFY_CACHE_ISOLATED: + Sent from psxDma3(). + case R3000ACPU_NOTIFY_DMA3_EXE_LOAD: + default: + break; + } + */ +} +#endif + static void ari64_shutdown() { new_dynarec_cleanup(); @@ -419,6 +437,9 @@ R3000Acpu psxRec = { intExecuteBlockT, #endif ari64_clear, +#ifdef ICACHE_EMULATION + ari64_notify, +#endif ari64_shutdown };