summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro/macro_jit_x64.cpp
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2020-06-15 22:16:47 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2020-06-15 22:19:38 +0200
commitcf0aad7d6a22024362c7adf04b605108141453f6 (patch)
treec8ddeb1c2a669a21b5574f7d7850c7cff4d89896 /src/video_core/macro/macro_jit_x64.cpp
parentmacro_jit_x64: Remove unused function Compile_WriteCarry (diff)
downloadyuzu-cf0aad7d6a22024362c7adf04b605108141453f6.tar
yuzu-cf0aad7d6a22024362c7adf04b605108141453f6.tar.gz
yuzu-cf0aad7d6a22024362c7adf04b605108141453f6.tar.bz2
yuzu-cf0aad7d6a22024362c7adf04b605108141453f6.tar.lz
yuzu-cf0aad7d6a22024362c7adf04b605108141453f6.tar.xz
yuzu-cf0aad7d6a22024362c7adf04b605108141453f6.tar.zst
yuzu-cf0aad7d6a22024362c7adf04b605108141453f6.zip
Diffstat (limited to 'src/video_core/macro/macro_jit_x64.cpp')
-rw-r--r--src/video_core/macro/macro_jit_x64.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp
index b703daad9..2eb98173d 100644
--- a/src/video_core/macro/macro_jit_x64.cpp
+++ b/src/video_core/macro/macro_jit_x64.cpp
@@ -17,7 +17,6 @@ namespace Tegra {
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;
@@ -25,7 +24,6 @@ static const std::bitset<32> PERSISTENT_REGISTERS = Common::X64::BuildRegSet({
STATE,
RESULT,
PARAMETERS,
- NEXT_PARAMETER,
METHOD_ADDRESS,
BRANCH_HOLDER,
});
@@ -422,7 +420,6 @@ void MacroJITx64Impl::Compile() {
mov(PARAMETERS, Common::X64::ABI_PARAM2);
xor_(RESULT, RESULT);
xor_(METHOD_ADDRESS, METHOD_ADDRESS);
- xor_(NEXT_PARAMETER, NEXT_PARAMETER);
xor_(BRANCH_HOLDER, BRANCH_HOLDER);
mov(dword[STATE + offsetof(JITState, registers) + 4], Compile_FetchParameter());
@@ -529,8 +526,8 @@ bool MacroJITx64Impl::Compile_NextInstruction() {
}
Xbyak::Reg32 Tegra::MacroJITx64Impl::Compile_FetchParameter() {
- mov(eax, dword[PARAMETERS + NEXT_PARAMETER * sizeof(u32)]);
- inc(NEXT_PARAMETER);
+ mov(eax, dword[PARAMETERS]);
+ add(PARAMETERS, sizeof(u32));
return eax;
}