From bc852aebeb9852801329f9576b4d5e3fa7df2efa Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 23 Jan 2024 15:56:11 +0100 Subject: Added a new option BOX64_MMAP32 to use 32bits mapping on external MMAP (help Snapdragon device running Vulkan with Wine/Wow64, active by default on SD845/SD888/SD8G2 profiles) --- src/dynarec/dynarec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dynarec') diff --git a/src/dynarec/dynarec.c b/src/dynarec/dynarec.c index 6fef6935..032e34b7 100644 --- a/src/dynarec/dynarec.c +++ b/src/dynarec/dynarec.c @@ -180,6 +180,9 @@ void DynaRun(x64emu_t* emu) dynarec_log(LOG_DEBUG, "%04d|Running DynaRec Block @%p (%p) of %d x64 insts (hash=0x%x) emu=%p\n", GetTID(), (void*)R_RIP, block->block, block->isize, block->hash, emu); // block is here, let's run it! native_prolog(emu, block->block); + extern int running32bits; + if(emu->segs[_CS]==0x23) + running32bits = 1; } if(emu->fork) { int forktype = emu->fork; -- cgit 1.4.1