DSPCore: Rename JIT core type to JIT64
This changes the identifier to represent the x86-64 DSP emitter. If any other JITs for the DSP are added in the future, they all can't use the same generic identifier.
This commit is contained in:
parent
98af5e4c10
commit
161dffe2f9
|
@ -170,7 +170,7 @@ bool DSPCore_Init(const DSPInitOptions& opts)
|
||||||
Common::WriteProtectMemory(g_dsp.iram, DSP_IRAM_BYTE_SIZE, false);
|
Common::WriteProtectMemory(g_dsp.iram, DSP_IRAM_BYTE_SIZE, false);
|
||||||
|
|
||||||
// Initialize JIT, if necessary
|
// Initialize JIT, if necessary
|
||||||
if (opts.core_type == DSPInitOptions::CoreType::JIT)
|
if (opts.core_type == DSPInitOptions::CoreType::JIT64)
|
||||||
g_dsp_jit = std::make_unique<JIT::x64::DSPEmitter>();
|
g_dsp_jit = std::make_unique<JIT::x64::DSPEmitter>();
|
||||||
|
|
||||||
g_dsp_cap.reset(opts.capture_logger);
|
g_dsp_cap.reset(opts.capture_logger);
|
||||||
|
|
|
@ -329,13 +329,13 @@ struct DSPInitOptions
|
||||||
std::array<u16, DSP_COEF_SIZE> coef_contents;
|
std::array<u16, DSP_COEF_SIZE> coef_contents;
|
||||||
|
|
||||||
// Core used to emulate the DSP.
|
// Core used to emulate the DSP.
|
||||||
// Default: JIT.
|
// Default: JIT64.
|
||||||
enum class CoreType
|
enum class CoreType
|
||||||
{
|
{
|
||||||
Interpreter,
|
Interpreter,
|
||||||
JIT,
|
JIT64,
|
||||||
};
|
};
|
||||||
CoreType core_type = CoreType::JIT;
|
CoreType core_type = CoreType::JIT64;
|
||||||
|
|
||||||
// Optional capture logger used to log internal DSP data transfers.
|
// Optional capture logger used to log internal DSP data transfers.
|
||||||
// Default: dummy implementation, does nothing.
|
// Default: dummy implementation, does nothing.
|
||||||
|
|
|
@ -156,7 +156,7 @@ static bool FillDSPInitOptions(DSPInitOptions* opts)
|
||||||
opts->core_type = DSPInitOptions::CoreType::Interpreter;
|
opts->core_type = DSPInitOptions::CoreType::Interpreter;
|
||||||
#ifdef _M_X86
|
#ifdef _M_X86
|
||||||
if (SConfig::GetInstance().m_DSPEnableJIT)
|
if (SConfig::GetInstance().m_DSPEnableJIT)
|
||||||
opts->core_type = DSPInitOptions::CoreType::JIT;
|
opts->core_type = DSPInitOptions::CoreType::JIT64;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SConfig::GetInstance().m_DSPCaptureLog)
|
if (SConfig::GetInstance().m_DSPCaptureLog)
|
||||||
|
|
Loading…
Reference in New Issue