diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-01-27 13:27:13 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-01-27 13:27:13 +0100 |
| commit | 38dce9138d702b18c265e5d4b2c6619ac694dbe6 (patch) | |
| tree | b01931014a81c6bbe5e7588cf5afb67d882e626e /src | |
| parent | 2aa5c5f33746c8e134ce224110a7d3bb4ede16c2 (diff) | |
| download | box64-38dce9138d702b18c265e5d4b2c6619ac694dbe6.tar.gz box64-38dce9138d702b18c265e5d4b2c6619ac694dbe6.zip | |
[DYNAREC] Small change on DIRTY=1 to reduce hotpage effect
Diffstat (limited to 'src')
| -rw-r--r-- | src/custommem.c | 3 |
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) { |