sofjit: Correctly poison memory.

Noticed this wasn't breakpoints when reviewing some assembly output.
This commit is contained in:
Unknown W. Brackets 2022-01-01 23:17:00 -08:00
parent 745c35f320
commit e93c709f5c
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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)