From e9d91fb9f336164aa1430a901fa2cf05a2ef850a Mon Sep 17 00:00:00 2001 From: pierre Date: Wed, 13 Oct 2010 21:07:16 +0000 Subject: [PATCH] Core/DSPCore: Initialise all of the code blocks It is pure luck that we did get a fresh (thus zeroed) memory area when not putting DSPLLE on thread. ClearIRAM() is supposed to only clear the non-static part. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6278 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPEmitter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/DSPCore/Src/DSPEmitter.cpp b/Source/Core/DSPCore/Src/DSPEmitter.cpp index 2b4a6ed2e8..421b75ee1f 100644 --- a/Source/Core/DSPCore/Src/DSPEmitter.cpp +++ b/Source/Core/DSPCore/Src/DSPEmitter.cpp @@ -38,7 +38,12 @@ DSPEmitter::DSPEmitter() : storeIndex(-1) blocks = new CompiledCode[MAX_BLOCKS]; blockSize = new u16[0x10000]; - ClearIRAM(); + //clear all of the block references + for(int i = 0x0000; i < MAX_BLOCKS; i++) + { + blocks[i] = NULL; + blockSize[i] = 0; + } compileSR = 0; compileSR |= SR_INT_ENABLE;