diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index 62108eea65..fd855b3893 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -149,7 +149,7 @@ enum STACK_SIZE = 2 * 1024 * 1024, SAFE_STACK_SIZE = 512 * 1024, GUARD_SIZE = 0x10000, // two guards - bottom (permanent) and middle (see above) - GUARD_OFFSET = STACK_SIZE - SAFE_STACK_SIZE - GUARD_SIZE, + GUARD_OFFSET = SAFE_STACK_SIZE - GUARD_SIZE, }; Jit64::Jit64() : QuantizedMemoryRoutines(*this) diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp index 8f13777b17..5770e30acf 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp @@ -41,7 +41,7 @@ constexpr size_t FARCODE_SIZE_MMU = 1024 * 1024 * 64; constexpr size_t STACK_SIZE = 2 * 1024 * 1024; constexpr size_t SAFE_STACK_SIZE = 512 * 1024; constexpr size_t GUARD_SIZE = 64 * 1024; // two guards - bottom (permanent) and middle (see above) -constexpr size_t GUARD_OFFSET = STACK_SIZE - SAFE_STACK_SIZE - GUARD_SIZE; +constexpr size_t GUARD_OFFSET = SAFE_STACK_SIZE - GUARD_SIZE; JitArm64::JitArm64() : m_float_emit(this) {