mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
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:
parent
7c0cae9e8b
commit
e9d91fb9f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user