mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Fix range
This commit is contained in:
parent
c1cca209b8
commit
01ce538cd6
@ -62,8 +62,8 @@ static bool SrtWalkerSignalHandler(void* context, void* fault_address) {
|
|||||||
const u8* code_start = g_srt_codegen_start;
|
const u8* code_start = g_srt_codegen_start;
|
||||||
const u8* code_end = code_start + g_srt_codegen.getSize();
|
const u8* code_end = code_start + g_srt_codegen.getSize();
|
||||||
const void* code = Common::GetRip(context);
|
const void* code = Common::GetRip(context);
|
||||||
if (code < code_start || fault_address >= code) {
|
if (code < code_start || code >= code_end) {
|
||||||
return false;
|
return false; // Not in SRT code range
|
||||||
}
|
}
|
||||||
|
|
||||||
// Patch instruction to zero register
|
// Patch instruction to zero register
|
||||||
|
Loading…
Reference in New Issue
Block a user