mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-04-09 23:03:32 +02:00
callback: Properly handle calls with return pointers and simplify interface
This commit is contained in:
@@ -152,9 +152,9 @@ void BlockOfCode::GenRunCode() {
|
||||
SwitchMxcsrOnExit();
|
||||
}
|
||||
|
||||
cb.AddTicks->EmitCall(*this, [this](Xbyak::Reg64 param1) {
|
||||
mov(param1, qword[r15 + jsi.offsetof_cycles_to_run]);
|
||||
sub(param1, qword[r15 + jsi.offsetof_cycles_remaining]);
|
||||
cb.AddTicks->EmitCall(*this, [this](RegList param) {
|
||||
mov(param[0], qword[r15 + jsi.offsetof_cycles_to_run]);
|
||||
sub(param[0], qword[r15 + jsi.offsetof_cycles_remaining]);
|
||||
});
|
||||
|
||||
ABI_PopCalleeSaveRegistersAndAdjustStack(*this);
|
||||
|
||||
Reference in New Issue
Block a user