diff options
| author | pierre <pierre@pirsoft.de> | 2010-10-13 21:07:16 +0000 |
|---|---|---|
| committer | pierre <pierre@pirsoft.de> | 2010-10-13 21:07:16 +0000 |
| commit | e9d91fb9f336164aa1430a901fa2cf05a2ef850a (patch) | |
| tree | 72302b8c518497571b4c5516e1bf6b74df1bd35f /Source/Core | |
| parent | 7c0cae9e8bf44f5a1556530d7e64f74d41d6f60f (diff) | |
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
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPEmitter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; |
