VERY experimental Nintendo Switch 2 emulator
C++
Merge pull request #4086 from MerryMage/abi
bunneiad5d93f79be1
diff --cc src/video_core/macro/macro_jit_x64.cppindex 2eb98173df,2d82c8cff5..d4a97ec7b5--- a/src/video_core/macro/macro_jit_x64.cpp+++ b/src/video_core/macro/macro_jit_x64.cpp@@@ -414,15 -421,19 +414,15 @@@ void MacroJITx64Impl::Compile()bool keep_executing = true;labels.fill(Xbyak::Label());- Common::X64::ABI_PushRegistersAndAdjustStackGPS(*this, Common::X64::ABI_ALL_CALLEE_SAVED, 8);+ Common::X64::ABI_PushRegistersAndAdjustStack(*this, Common::X64::ABI_ALL_CALLEE_SAVED, 8);// JIT statemov(STATE, Common::X64::ABI_PARAM1);- mov(PARAMETERS, qword[Common::X64::ABI_PARAM1 +- static_cast<Xbyak::uint32>(offsetof(JITState, parameters))]);- mov(REGISTERS, Common::X64::ABI_PARAM1);- add(REGISTERS, static_cast<Xbyak::uint32>(offsetof(JITState, registers)));+ 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[REGISTERS + 4], Compile_FetchParameter());+ mov(dword[STATE + offsetof(JITState, registers) + 4], Compile_FetchParameter());// Track get register for zero registers and mark it as no-opoptimizer.zero_reg_skip = true;