mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 15:00:17 +02:00
TestHarnessRunner: Use VirtualAlloc for mapping regions.
Needs to be alligned to allocation size. Which is a page on Linux, or 64k on Windows. In order to map at `0x1'0000` on Wine, we need to use a special case DOS area allocation path.
This commit is contained in:
1 parent
3f214dd244
commit
4a54197868
2 files changed
+27
-48
No files matched your search
@@ -208,7 +208,7 @@ int main(int argc, char **argv, char **const envp) {
|
||||
: FEX::HLE::x32::CreateHandler(CTX.get(), SignalDelegation.get(), std::move(Allocator));
|
||||
|
||||
// Run through FEX
|
||||
if (!Loader.MapMemory(SyscallHandler.get())) {
|
||||
if (!Loader.MapMemory()) {
|
||||
// failed to map
|
||||
LogMan::Msg::EFmt("Failed to map %d-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
|
||||
return -ENOEXEC;
|
||||
|
||||
Reference in new issue
Block a user