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:
parent
646d96a216
commit
f3d353a85d
|
@ -251,8 +251,8 @@ int DSPCore_RunCycles(int cycles)
|
|||
}
|
||||
|
||||
g_cycles_left = cycles;
|
||||
DSPCompiledCode pExecAddr = (DSPCompiledCode)g_dsp_jit->enterDispatcher;
|
||||
pExecAddr();
|
||||
auto exec_addr = (DSPEmitter::DSPCompiledCode)g_dsp_jit->enterDispatcher;
|
||||
exec_addr();
|
||||
|
||||
if (g_dsp.reset_dspjit_codespace)
|
||||
g_dsp_jit->ClearIRAMandDSPJITCodespaceReset();
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
#include "Core/DSP/DSPCommon.h"
|
||||
#include "Core/DSP/Jit/DSPJitRegCache.h"
|
||||
|
||||
typedef u32 (*DSPCompiledCode)();
|
||||
typedef const u8* Block;
|
||||
|
||||
class DSPEmitter : public Gen::X64CodeBlock
|
||||
{
|
||||
public:
|
||||
using DSPCompiledCode = u32 (*)();
|
||||
using Block = const u8*;
|
||||
|
||||
static constexpr size_t MAX_BLOCKS = 0x10000;
|
||||
|
||||
DSPEmitter();
|
||||
|
|
Loading…
Reference in New Issue