From d8494ef1aed2559a49205e36eb9be1e88421eac0 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Wed, 31 Aug 2022 17:43:56 +0300 Subject: [PATCH] Update Thread.cpp --- Utilities/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index c16f6a5374..592c6f0021 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1240,7 +1240,7 @@ bool handle_access_violation(u32 addr, bool is_writing, ucontext_t* context) noe const auto cpu = get_current_cpu_thread(); - if (addr < RAW_SPU_BASE_ADDR && rsx::g_access_violation_handler) + if (vm::check_addr(addr) && addr < RAW_SPU_BASE_ADDR && rsx::g_access_violation_handler) { bool state_changed = false;