mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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;
|
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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user