about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 74203104..6846b77b 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -1487,10 +1487,11 @@ static int hotpage_cnt = 0;
 static int repeated_count = 0;
 static uintptr_t repeated_page = 0;
 #define HOTPAGE_MARK 64
+#define HOTPAGE_DIRTY 8
 void SetHotPage(uintptr_t addr)
 {
     hotpage = addr&~(box64_pagesize-1);
-    hotpage_cnt = HOTPAGE_MARK;
+    hotpage_cnt = BOX64ENV(dynarec_dirty)?HOTPAGE_DIRTY:HOTPAGE_MARK;
 }
 void CheckHotPage(uintptr_t addr)
 {