From b3fd79b45a6c5ee11b45b3e3cc5593462c07e371 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 13 Mar 2018 18:48:10 -0400 Subject: [PATCH] DSPCore: Rename namespace to match moved x64 JIT files Maintains consistency between location and code --- Source/Core/Core/DSP/DSPCore.cpp | 4 ++-- Source/Core/Core/DSP/DSPCore.h | 4 ++-- Source/Core/Core/DSP/DSPTables.cpp | 2 +- Source/Core/Core/DSP/DSPTables.h | 2 +- Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPEmitter.h | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h | 4 ++-- Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp | 4 ++-- 16 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Source/Core/Core/DSP/DSPCore.cpp b/Source/Core/Core/DSP/DSPCore.cpp index db68a2c260..2a0727ff41 100644 --- a/Source/Core/Core/DSP/DSPCore.cpp +++ b/Source/Core/Core/DSP/DSPCore.cpp @@ -30,7 +30,7 @@ SDSP g_dsp; DSPBreakpoints g_dsp_breakpoints; static State core_state = State::Stopped; bool g_init_hax = false; -std::unique_ptr g_dsp_jit; +std::unique_ptr g_dsp_jit; std::unique_ptr g_dsp_cap; static Common::Event step_event; @@ -171,7 +171,7 @@ bool DSPCore_Init(const DSPInitOptions& opts) // Initialize JIT, if necessary if (opts.core_type == DSPInitOptions::CORE_JIT) - g_dsp_jit = std::make_unique(); + g_dsp_jit = std::make_unique(); g_dsp_cap.reset(opts.capture_logger); diff --git a/Source/Core/Core/DSP/DSPCore.h b/Source/Core/Core/DSP/DSPCore.h index 953dd210ad..d1e9ce2f0d 100644 --- a/Source/Core/Core/DSP/DSPCore.h +++ b/Source/Core/Core/DSP/DSPCore.h @@ -20,7 +20,7 @@ class Accelerator; namespace JIT { -namespace x86 +namespace x64 { class DSPEmitter; } @@ -317,7 +317,7 @@ struct SDSP extern SDSP g_dsp; extern DSPBreakpoints g_dsp_breakpoints; extern bool g_init_hax; -extern std::unique_ptr g_dsp_jit; +extern std::unique_ptr g_dsp_jit; extern std::unique_ptr g_dsp_cap; struct DSPInitOptions diff --git a/Source/Core/Core/DSP/DSPTables.cpp b/Source/Core/Core/DSP/DSPTables.cpp index e06f69ce74..92d4de9074 100644 --- a/Source/Core/Core/DSP/DSPTables.cpp +++ b/Source/Core/Core/DSP/DSPTables.cpp @@ -18,7 +18,7 @@ namespace DSP { -using JIT::x86::DSPEmitter; +using JIT::x64::DSPEmitter; // clang-format off const std::array s_opcodes = diff --git a/Source/Core/Core/DSP/DSPTables.h b/Source/Core/Core/DSP/DSPTables.h index 41d5435a1c..def79f28af 100644 --- a/Source/Core/Core/DSP/DSPTables.h +++ b/Source/Core/Core/DSP/DSPTables.h @@ -69,7 +69,7 @@ struct param2_t struct DSPOPCTemplate { using InterpreterFunction = void (*)(UDSPInstruction); - using JITFunction = void (DSP::JIT::x86::DSPEmitter::*)(UDSPInstruction); + using JITFunction = void (JIT::x64::DSPEmitter::*)(UDSPInstruction); const char* name; u16 opcode; diff --git a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp index 5932f7c550..8c886fb251 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp @@ -26,7 +26,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { constexpr size_t COMPILED_CODE_SIZE = 2097152; 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(offsetof(SDSP, reg_stack_ptr[index]))); } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h index 70585d513d..245fb1a9df 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h +++ b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h @@ -24,7 +24,7 @@ enum class StackRegister; namespace JIT { -namespace x86 +namespace x64 { class DSPEmitter : public Gen::X64CodeBlock { @@ -321,6 +321,6 @@ private: const u8* m_stub_entry_point; }; -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp index e787faaa69..47ac525d8c 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp @@ -16,7 +16,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // CLR $acR // 1000 r001 xxxx xxxx @@ -1676,6 +1676,6 @@ void DSPEmitter::asrnr(const UDSPInstruction opc) } } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp index 80a7d81ced..bd6837f4a0 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp @@ -16,7 +16,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { void DSPEmitter::ReJitConditional(const UDSPInstruction opc, void (DSPEmitter::*conditional_fn)(UDSPInstruction)) @@ -462,6 +462,6 @@ void DSPEmitter::bloopi(const UDSPInstruction opc) } } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp index 13bb4fcea7..7457e21377 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp @@ -13,7 +13,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // In: val: s64 _Value // Clobbers scratch @@ -168,6 +168,6 @@ void DSPEmitter::Update_SR_Register16_OverS32(Gen::X64Reg val) Update_SR_Register16(val); } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp index 5893117f84..e8c5bb4fc2 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp @@ -29,7 +29,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // DR $arR // xxxx xxxx 0000 01rr @@ -698,6 +698,6 @@ void DSPEmitter::popExtValueToReg() m_store_index2 = -1; } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp index f750227c13..4ddb24ab52 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp @@ -16,7 +16,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // SRS @M, $(0x18+S) // 0010 1sss mmmm mmmm @@ -355,6 +355,6 @@ void DSPEmitter::ilrrn(const UDSPInstruction opc) increase_addr_reg(reg, reg); } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp index 875febc466..7ecd866fe0 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp @@ -14,7 +14,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // MRR $D, $S // 0001 11dd ddds ssss @@ -195,6 +195,6 @@ void DSPEmitter::srbith(const UDSPInstruction opc) } } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp index 3051b11376..67456043df 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp @@ -19,7 +19,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // Returns s64 in RAX // In: RCX = s16 a, RAX = s16 b @@ -778,6 +778,6 @@ void DSPEmitter::msub(const UDSPInstruction opc) set_long_prod(); } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp index 87c2b8bf24..152e0b49d5 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp @@ -20,7 +20,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // Ordered in order of prefered use. // Not all of these are actually available @@ -993,6 +993,6 @@ void DSPJitRegCache::PutXReg(X64Reg reg) m_xregs[reg].guest_reg = DSP_REG_NONE; } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h index 9d55d37ff5..9e3d2cdbad 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h @@ -12,7 +12,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { class DSPEmitter; @@ -185,6 +185,6 @@ private: int m_use_ctr; }; -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp index 0e63ddf670..d66ebce825 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp @@ -14,7 +14,7 @@ namespace DSP { namespace JIT { -namespace x86 +namespace x64 { // clobbers: // 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); } -} // namespace x86 +} // namespace x64 } // namespace JIT } // namespace DSP