diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-04 17:52:05 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-04 17:52:05 +0100 |
| commit | 3ed1e565f8e494070c070d7d3742efc89c41c741 (patch) | |
| tree | 87c0d040e86c1a1d0e94e085cb41124089293f0f /src | |
| parent | 8d0c976a18dde6fca133f64bc0396ea084396e09 (diff) | |
| download | box64-3ed1e565f8e494070c070d7d3742efc89c41c741.tar.gz box64-3ed1e565f8e494070c070d7d3742efc89c41c741.zip | |
Disable another execution test when pagesize is not 4K
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynarec/dynablock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dynarec/dynablock.c b/src/dynarec/dynablock.c index 35c2fb03..f651e5fd 100644 --- a/src/dynarec/dynablock.c +++ b/src/dynarec/dynablock.c @@ -221,8 +221,8 @@ static dynablock_t* internalDBGetBlock(x64emu_t* emu, uintptr_t addr, uintptr_t return block; } } - - if((getProtection_fast(addr)&(PROT_EXEC|PROT_READ))!=(PROT_EXEC|PROT_READ)) {// cannot be run, get out of the Dynarec + const uint32_t req_prot = (box64_pagesize==4096)?(PROT_EXEC|PROT_READ):PROT_READ; + if((getProtection_fast(addr)&req_prot)!=req_prot) {// cannot be run, get out of the Dynarec if(need_lock) mutex_unlock(&my_context->mutex_dyndump); return NULL; |