From e93c709f5c796a65be3e9b0730b7193bde917209 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 1 Jan 2022 23:17:00 -0800 Subject: [PATCH] sofjit: Correctly poison memory. Noticed this wasn't breakpoints when reviewing some assembly output. --- GPU/Software/DrawPixel.cpp | 1 + GPU/Software/Sampler.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/GPU/Software/DrawPixel.cpp b/GPU/Software/DrawPixel.cpp index cff4c9e1a8..ab773be464 100644 --- a/GPU/Software/DrawPixel.cpp +++ b/GPU/Software/DrawPixel.cpp @@ -517,6 +517,7 @@ PixelJitCache::PixelJitCache() { // 256k should be plenty of space for plenty of variations. AllocCodeSpace(1024 * 64 * 4); + ClearCodeSpace(0); // Add some random code to "help" MSVC's buggy disassembler :( #if defined(_WIN32) && (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)) && !PPSSPP_PLATFORM(UWP) diff --git a/GPU/Software/Sampler.cpp b/GPU/Software/Sampler.cpp index 64983244f8..1ad308d11c 100644 --- a/GPU/Software/Sampler.cpp +++ b/GPU/Software/Sampler.cpp @@ -101,6 +101,7 @@ SamplerJitCache::SamplerJitCache() { // 256k should be enough. AllocCodeSpace(1024 * 64 * 4); + ClearCodeSpace(0); // Add some random code to "help" MSVC's buggy disassembler :( #if defined(_WIN32) && (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)) && !PPSSPP_PLATFORM(UWP)