From 9be4ba6483d8d4bbd87fd12ade5c5cc7f9e3f116 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 22 Sep 2011 02:11:04 +0300 Subject: drc: do modification check in smaller than page granularity There are some games that keep writing in the same 4k page where the code resides (Alien Ressurection is one such example). I've noticed those accesses are usually to a small region, so keep range of addresses that has no code and has been recently accessed and check it when the writes come. --- libpcsxcore/new_dynarec/emu_if.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpcsxcore/new_dynarec/emu_if.h') diff --git a/libpcsxcore/new_dynarec/emu_if.h b/libpcsxcore/new_dynarec/emu_if.h index a561255..128d431 100644 --- a/libpcsxcore/new_dynarec/emu_if.h +++ b/libpcsxcore/new_dynarec/emu_if.h @@ -47,6 +47,9 @@ extern unsigned char byte; extern void *psxH_ptr; +// same as invalid_code, just a region for ram write checks (inclusive) +extern u32 inv_code_start, inv_code_end; + /* cycles/irqs */ extern unsigned int next_interupt; extern int pending_exception; -- cgit v1.2.3