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
This commit is contained in:
pierre 2010-10-13 21:07:16 +00:00
parent 7c0cae9e8b
commit e9d91fb9f3

View file

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