DSPEmitter: Initialize compileSR in the initializer list

This commit is contained in:
Lioncash 2016-12-26 19:42:09 -05:00
parent f3d353a85d
commit 50b1fcb1ed
1 changed files with 3 additions and 5 deletions

View File

@ -24,14 +24,12 @@ constexpr u16 DSP_IDLE_SKIP_CYCLES = 0x1000;
using namespace Gen; using namespace Gen;
DSPEmitter::DSPEmitter() : blockLinks(MAX_BLOCKS), blockSize(MAX_BLOCKS), blocks(MAX_BLOCKS) DSPEmitter::DSPEmitter()
: blockLinks(MAX_BLOCKS), blockSize(MAX_BLOCKS), blocks(MAX_BLOCKS),
compileSR{SR_INT_ENABLE | SR_EXT_INT_ENABLE}
{ {
AllocCodeSpace(COMPILED_CODE_SIZE); AllocCodeSpace(COMPILED_CODE_SIZE);
compileSR = 0;
compileSR |= SR_INT_ENABLE;
compileSR |= SR_EXT_INT_ENABLE;
CompileDispatcher(); CompileDispatcher();
stubEntryPoint = CompileStub(); stubEntryPoint = CompileStub();