diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2020-06-15 22:12:53 +0200 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2020-06-15 22:19:38 +0200 |
commit | c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5 (patch) | |
tree | 42709cd33842b88cef1f82c068862a322c676d06 /src/video_core/macro | |
parent | macro_jit_x64: Remove REGISTERS (diff) | |
download | yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.tar yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.tar.gz yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.tar.bz2 yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.tar.lz yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.tar.xz yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.tar.zst yuzu-c09a9e5cc7f53280218cdfbfd7d7ff056f1c2ff5.zip |
Diffstat (limited to 'src/video_core/macro')
-rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index da3b86d3d..1e7b05ac9 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp @@ -14,18 +14,18 @@ MICROPROFILE_DEFINE(MacroJitCompile, "GPU", "Compile macro JIT", MP_RGB(173, 255 MICROPROFILE_DEFINE(MacroJitExecute, "GPU", "Execute macro JIT", MP_RGB(255, 255, 0)); namespace Tegra { -static const Xbyak::Reg64 PARAMETERS = Xbyak::util::r9; -static const Xbyak::Reg64 STATE = Xbyak::util::r11; -static const Xbyak::Reg64 NEXT_PARAMETER = Xbyak::util::r12; -static const Xbyak::Reg32 RESULT = Xbyak::util::r13d; +static const Xbyak::Reg64 STATE = Xbyak::util::rbx; +static const Xbyak::Reg32 RESULT = Xbyak::util::ebp; +static const Xbyak::Reg64 PARAMETERS = Xbyak::util::r12; +static const Xbyak::Reg64 NEXT_PARAMETER = Xbyak::util::r13; static const Xbyak::Reg32 METHOD_ADDRESS = Xbyak::util::r14d; static const Xbyak::Reg64 BRANCH_HOLDER = Xbyak::util::r15; static const std::bitset<32> PERSISTENT_REGISTERS = Common::X64::BuildRegSet({ - PARAMETERS, STATE, - NEXT_PARAMETER, RESULT, + PARAMETERS, + NEXT_PARAMETER, METHOD_ADDRESS, BRANCH_HOLDER, }); @@ -64,13 +64,13 @@ void MacroJITx64Impl::Compile_ALU(Macro::Opcode opcode) { if (!optimizer.zero_reg_skip) { src_a = Compile_GetRegister(opcode.src_a, RESULT); - src_b = Compile_GetRegister(opcode.src_b, ebx); + src_b = Compile_GetRegister(opcode.src_b, eax); } else { if (!is_a_zero) { src_a = Compile_GetRegister(opcode.src_a, RESULT); } if (!is_b_zero) { - src_b = Compile_GetRegister(opcode.src_b, ebx); + src_b = Compile_GetRegister(opcode.src_b, eax); } } Xbyak::Label skip_carry{}; |