about summary refs log tree commit diff stats
path: root/src/emu/modrm.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-11-04 11:43:27 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-11-04 11:43:27 +0100
commit3448e941710dbf11d2772d5782a0b2d44e7892b1 (patch)
tree2c9ee9d17416e124b7baaa53eefafc2f0a0a7942 /src/emu/modrm.h
parent08085be36070ba22b9e2e99529826d60d5ba149f (diff)
downloadbox64-3448e941710dbf11d2772d5782a0b2d44e7892b1.tar.gz
box64-3448e941710dbf11d2772d5782a0b2d44e7892b1.zip
Improve handling of memory protection, and excution bit
Diffstat (limited to 'src/emu/modrm.h')
-rw-r--r--src/emu/modrm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/modrm.h b/src/emu/modrm.h
index 2f2cd1fc..6b02e74a 100644
--- a/src/emu/modrm.h
+++ b/src/emu/modrm.h
@@ -11,9 +11,9 @@
 #define F64S    *(int64_t*)(addr+=8, addr-8)

 #define PK(a)   *(uint8_t*)(addr+a)

 #ifdef DYNAREC

-#define STEP if(step) return 0;

-#define STEP2 if(step) {R_RIP = addr; return 0;}

-#define STEP3 if(*step) (*step)++;

+#define STEP  check_exec(emu, addr); if(step) return 0;

+#define STEP2 check_exec(emu, addr); if(step) {R_RIP = addr; return 0;}

+#define STEP3 check_exec(emu, addr); if(*step) (*step)++;

 #else

 #define STEP

 #define STEP2