diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-09-04 15:21:32 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-09-04 15:21:32 +0200 |
| commit | a3f63a12f9102794ce1d94c972064f10a25e944b (patch) | |
| tree | 03d227251c87b5edd9019a616783e27f21587c88 /src/libtools/signals.c | |
| parent | b2dfe64ceaeffcec02c98f5c332f8f8e31180dbd (diff) | |
| download | box64-a3f63a12f9102794ce1d94c972064f10a25e944b.tar.gz box64-a3f63a12f9102794ce1d94c972064f10a25e944b.zip | |
[DYNAREC] Improve memory protection tracking (help #361)
Diffstat (limited to 'src/libtools/signals.c')
| -rwxr-xr-x | src/libtools/signals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c index c003c863..df0b7d0b 100755 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -808,7 +808,7 @@ void my_box64signalhandler(int32_t sig, siginfo_t* info, void * ucntx) repeated_count = 0; } // access error, unprotect the block (and mark them dirty) - unprotectDB((uintptr_t)addr, 1); // unprotect 1 byte... But then, the whole page will be unprotected + unprotectDB((uintptr_t)addr, 1, 1); // unprotect 1 byte... But then, the whole page will be unprotected if(db && ((addr>=db->x64_addr && addr<(db->x64_addr+db->x64_size)) || db->need_test)) { // dynablock got auto-dirty! need to get out of it!!! emu_jmpbuf_t* ejb = GetJmpBuf(); |