diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-12-26 18:07:15 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-12-26 18:07:15 -0500 |
| commit | 400d5f694086acf884967355ccd8bd06d238ca2c (patch) | |
| tree | bb31fa8a81175a7a00e462b00008afa16d6517b2 /Source/Core | |
| parent | 1af9f68240d8bcd87b684e9736da784f7740f438 (diff) | |
DSPEmitter: In-class initialize variables
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/DSP/Jit/DSPEmitter.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/Core/DSP/Jit/DSPEmitter.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Core/DSP/Jit/DSPEmitter.cpp b/Source/Core/Core/DSP/Jit/DSPEmitter.cpp index 627018adf5..4f46d36b53 100644 --- a/Source/Core/Core/DSP/Jit/DSPEmitter.cpp +++ b/Source/Core/Core/DSP/Jit/DSPEmitter.cpp @@ -22,7 +22,7 @@ using namespace Gen; -DSPEmitter::DSPEmitter() : gpr(*this), storeIndex(-1), storeIndex2(-1) +DSPEmitter::DSPEmitter() { AllocCodeSpace(COMPILED_CODE_SIZE); diff --git a/Source/Core/Core/DSP/Jit/DSPEmitter.h b/Source/Core/Core/DSP/Jit/DSPEmitter.h index 25aa8e3ceb..c6951f7829 100644 --- a/Source/Core/Core/DSP/Jit/DSPEmitter.h +++ b/Source/Core/Core/DSP/Jit/DSPEmitter.h @@ -247,7 +247,7 @@ public: u16* blockSize; std::list<u16> unresolvedJumps[MAX_BLOCKS]; - DSPJitRegCache gpr; + DSPJitRegCache gpr{*this}; private: DSPCompiledCode* blocks; @@ -255,8 +255,8 @@ private: u16 compileSR; // The index of the last stored ext value (compile time). - int storeIndex; - int storeIndex2; + int storeIndex = -1; + int storeIndex2 = -1; // Counts down. // int cycles; |
