DSPEmitter: Move typedefs into DSPEmitter

Keeps them associated with the emitter itself, rather than just letting
them sit in global scope.
This commit is contained in:
Lioncash 2016-12-26 19:19:36 -05:00
parent 646d96a216
commit f3d353a85d
2 changed files with 5 additions and 5 deletions

View File

@ -251,8 +251,8 @@ int DSPCore_RunCycles(int cycles)
} }
g_cycles_left = cycles; g_cycles_left = cycles;
DSPCompiledCode pExecAddr = (DSPCompiledCode)g_dsp_jit->enterDispatcher; auto exec_addr = (DSPEmitter::DSPCompiledCode)g_dsp_jit->enterDispatcher;
pExecAddr(); exec_addr();
if (g_dsp.reset_dspjit_codespace) if (g_dsp.reset_dspjit_codespace)
g_dsp_jit->ClearIRAMandDSPJITCodespaceReset(); g_dsp_jit->ClearIRAMandDSPJITCodespaceReset();

View File

@ -15,12 +15,12 @@
#include "Core/DSP/DSPCommon.h" #include "Core/DSP/DSPCommon.h"
#include "Core/DSP/Jit/DSPJitRegCache.h" #include "Core/DSP/Jit/DSPJitRegCache.h"
typedef u32 (*DSPCompiledCode)();
typedef const u8* Block;
class DSPEmitter : public Gen::X64CodeBlock class DSPEmitter : public Gen::X64CodeBlock
{ {
public: public:
using DSPCompiledCode = u32 (*)();
using Block = const u8*;
static constexpr size_t MAX_BLOCKS = 0x10000; static constexpr size_t MAX_BLOCKS = 0x10000;
DSPEmitter(); DSPEmitter();