mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-16 12:00:46 +02:00
Merge pull request #4206 from bylaws/smcim
Windows: Track RWX regions in mapped images
This commit is contained in:
5 files changed
+33
-2
No files matched your search
@@ -476,6 +476,10 @@ void BTCpuProcessInit() {
|
||||
CTX->SetSyscallHandler(SyscallHandler.get());
|
||||
CTX->InitCore();
|
||||
InvalidationTracker.emplace(*CTX, Threads);
|
||||
|
||||
auto MainModule = reinterpret_cast<__TEB*>(NtCurrentTeb())->Peb->ImageBaseAddress;
|
||||
InvalidationTracker->HandleImageMap(reinterpret_cast<uint64_t>(MainModule));
|
||||
|
||||
CPUFeatures.emplace(*CTX);
|
||||
|
||||
// Allocate the syscall/unixcall trampolines in the lower 2GB of the address space
|
||||
|
||||
Reference in new issue
Block a user