mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 12:09:07 +00:00
Disable patches for Apple
Mac can use their native FS segment directly, so these patches aren't needed
This commit is contained in:
parent
bd6a565166
commit
abf72565e7
@ -472,15 +472,18 @@ static const std::unordered_map<ZydisMnemonic, std::vector<PatchInfo>> Patches =
|
|||||||
{ZYDIS_MNEMONIC_MOVNTSS, {{FilterNoSSE4a, ReplaceMOVNTSS, false}}},
|
{ZYDIS_MNEMONIC_MOVNTSS, {{FilterNoSSE4a, ReplaceMOVNTSS, false}}},
|
||||||
{ZYDIS_MNEMONIC_MOVNTSD, {{FilterNoSSE4a, ReplaceMOVNTSD, false}}},
|
{ZYDIS_MNEMONIC_MOVNTSD, {{FilterNoSSE4a, ReplaceMOVNTSD, false}}},
|
||||||
|
|
||||||
// fs[0x28]
|
#if !defined(__APPLE__)
|
||||||
|
// FS segment patches
|
||||||
|
// These first two patches are for accesses to the stack canary, fs:[0x28]
|
||||||
{ZYDIS_MNEMONIC_XOR, {{FilterStackCheck, GenerateStackCheck, false}}},
|
{ZYDIS_MNEMONIC_XOR, {{FilterStackCheck, GenerateStackCheck, false}}},
|
||||||
{ZYDIS_MNEMONIC_MOV,
|
{ZYDIS_MNEMONIC_MOV,
|
||||||
{{FilterStackCheck, GenerateStackCanary, false},
|
{{FilterStackCheck, GenerateStackCanary, false},
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
// Windows needs a trampoline for Tcb accesses.
|
// Windows needs a trampoline for Tcb accesses.
|
||||||
{FilterTcbAccess, GenerateTcbAccess, true}
|
{FilterTcbAccess, GenerateTcbAccess, true}
|
||||||
#elif !defined(__APPLE__)
|
#else
|
||||||
{FilterTcbAccess, GenerateTcbAccess, false}
|
{FilterTcbAccess, GenerateTcbAccess, false}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}},
|
}},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user