DSPCore: Rename namespace to match moved x64 JIT files

Maintains consistency between location and code
This commit is contained in:
Lioncash 2018-03-13 18:48:10 -04:00
parent ab5b90bf15
commit b3fd79b45a
16 changed files with 30 additions and 30 deletions

View File

@ -30,7 +30,7 @@ SDSP g_dsp;
DSPBreakpoints g_dsp_breakpoints; DSPBreakpoints g_dsp_breakpoints;
static State core_state = State::Stopped; static State core_state = State::Stopped;
bool g_init_hax = false; bool g_init_hax = false;
std::unique_ptr<JIT::x86::DSPEmitter> g_dsp_jit; std::unique_ptr<JIT::x64::DSPEmitter> g_dsp_jit;
std::unique_ptr<DSPCaptureLogger> g_dsp_cap; std::unique_ptr<DSPCaptureLogger> g_dsp_cap;
static Common::Event step_event; static Common::Event step_event;
@ -171,7 +171,7 @@ bool DSPCore_Init(const DSPInitOptions& opts)
// Initialize JIT, if necessary // Initialize JIT, if necessary
if (opts.core_type == DSPInitOptions::CORE_JIT) if (opts.core_type == DSPInitOptions::CORE_JIT)
g_dsp_jit = std::make_unique<JIT::x86::DSPEmitter>(); g_dsp_jit = std::make_unique<JIT::x64::DSPEmitter>();
g_dsp_cap.reset(opts.capture_logger); g_dsp_cap.reset(opts.capture_logger);

View File

@ -20,7 +20,7 @@ class Accelerator;
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
class DSPEmitter; class DSPEmitter;
} }
@ -317,7 +317,7 @@ struct SDSP
extern SDSP g_dsp; extern SDSP g_dsp;
extern DSPBreakpoints g_dsp_breakpoints; extern DSPBreakpoints g_dsp_breakpoints;
extern bool g_init_hax; extern bool g_init_hax;
extern std::unique_ptr<JIT::x86::DSPEmitter> g_dsp_jit; extern std::unique_ptr<JIT::x64::DSPEmitter> g_dsp_jit;
extern std::unique_ptr<DSPCaptureLogger> g_dsp_cap; extern std::unique_ptr<DSPCaptureLogger> g_dsp_cap;
struct DSPInitOptions struct DSPInitOptions

View File

@ -18,7 +18,7 @@
namespace DSP namespace DSP
{ {
using JIT::x86::DSPEmitter; using JIT::x64::DSPEmitter;
// clang-format off // clang-format off
const std::array<DSPOPCTemplate, 214> s_opcodes = const std::array<DSPOPCTemplate, 214> s_opcodes =

View File

@ -69,7 +69,7 @@ struct param2_t
struct DSPOPCTemplate struct DSPOPCTemplate
{ {
using InterpreterFunction = void (*)(UDSPInstruction); using InterpreterFunction = void (*)(UDSPInstruction);
using JITFunction = void (DSP::JIT::x86::DSPEmitter::*)(UDSPInstruction); using JITFunction = void (JIT::x64::DSPEmitter::*)(UDSPInstruction);
const char* name; const char* name;
u16 opcode; u16 opcode;

View File

@ -26,7 +26,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
constexpr size_t COMPILED_CODE_SIZE = 2097152; constexpr size_t COMPILED_CODE_SIZE = 2097152;
constexpr size_t MAX_BLOCK_SIZE = 250; constexpr size_t MAX_BLOCK_SIZE = 250;
@ -485,6 +485,6 @@ Gen::OpArg DSPEmitter::M_SDSP_reg_stack_ptr(size_t index)
return MDisp(R15, static_cast<int>(offsetof(SDSP, reg_stack_ptr[index]))); return MDisp(R15, static_cast<int>(offsetof(SDSP, reg_stack_ptr[index])));
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -24,7 +24,7 @@ enum class StackRegister;
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
class DSPEmitter : public Gen::X64CodeBlock class DSPEmitter : public Gen::X64CodeBlock
{ {
@ -321,6 +321,6 @@ private:
const u8* m_stub_entry_point; const u8* m_stub_entry_point;
}; };
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -16,7 +16,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// CLR $acR // CLR $acR
// 1000 r001 xxxx xxxx // 1000 r001 xxxx xxxx
@ -1676,6 +1676,6 @@ void DSPEmitter::asrnr(const UDSPInstruction opc)
} }
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -16,7 +16,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
void DSPEmitter::ReJitConditional(const UDSPInstruction opc, void DSPEmitter::ReJitConditional(const UDSPInstruction opc,
void (DSPEmitter::*conditional_fn)(UDSPInstruction)) void (DSPEmitter::*conditional_fn)(UDSPInstruction))
@ -462,6 +462,6 @@ void DSPEmitter::bloopi(const UDSPInstruction opc)
} }
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -13,7 +13,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// In: val: s64 _Value // In: val: s64 _Value
// Clobbers scratch // Clobbers scratch
@ -168,6 +168,6 @@ void DSPEmitter::Update_SR_Register16_OverS32(Gen::X64Reg val)
Update_SR_Register16(val); Update_SR_Register16(val);
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -29,7 +29,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// DR $arR // DR $arR
// xxxx xxxx 0000 01rr // xxxx xxxx 0000 01rr
@ -698,6 +698,6 @@ void DSPEmitter::popExtValueToReg()
m_store_index2 = -1; m_store_index2 = -1;
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -16,7 +16,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// SRS @M, $(0x18+S) // SRS @M, $(0x18+S)
// 0010 1sss mmmm mmmm // 0010 1sss mmmm mmmm
@ -355,6 +355,6 @@ void DSPEmitter::ilrrn(const UDSPInstruction opc)
increase_addr_reg(reg, reg); increase_addr_reg(reg, reg);
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -14,7 +14,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// MRR $D, $S // MRR $D, $S
// 0001 11dd ddds ssss // 0001 11dd ddds ssss
@ -195,6 +195,6 @@ void DSPEmitter::srbith(const UDSPInstruction opc)
} }
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -19,7 +19,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// Returns s64 in RAX // Returns s64 in RAX
// In: RCX = s16 a, RAX = s16 b // In: RCX = s16 a, RAX = s16 b
@ -778,6 +778,6 @@ void DSPEmitter::msub(const UDSPInstruction opc)
set_long_prod(); set_long_prod();
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -20,7 +20,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// Ordered in order of prefered use. // Ordered in order of prefered use.
// Not all of these are actually available // Not all of these are actually available
@ -993,6 +993,6 @@ void DSPJitRegCache::PutXReg(X64Reg reg)
m_xregs[reg].guest_reg = DSP_REG_NONE; m_xregs[reg].guest_reg = DSP_REG_NONE;
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -12,7 +12,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
class DSPEmitter; class DSPEmitter;
@ -185,6 +185,6 @@ private:
int m_use_ctr; int m_use_ctr;
}; };
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP

View File

@ -14,7 +14,7 @@ namespace DSP
{ {
namespace JIT namespace JIT
{ {
namespace x86 namespace x64
{ {
// clobbers: // clobbers:
// EAX = (s8)g_dsp.reg_stack_ptr[reg_index] // EAX = (s8)g_dsp.reg_stack_ptr[reg_index]
@ -811,6 +811,6 @@ void DSPEmitter::get_ax_h(int _reg, X64Reg axh)
m_gpr.ReadReg(_reg + DSP_REG_AXH0, axh, RegisterExtension::Sign); m_gpr.ReadReg(_reg + DSP_REG_AXH0, axh, RegisterExtension::Sign);
} }
} // namespace x86 } // namespace x64
} // namespace JIT } // namespace JIT
} // namespace DSP } // namespace DSP