Skip to content

Commit

Permalink
rec-arm64: fix Store Queue write handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinghead committed Nov 8, 2024
1 parent 93ae9d0 commit 9cb7d9e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/rec-ARM64/rec_arm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1557,8 +1557,7 @@ class Arm64Assembler : public MacroAssembler
Cmp(x7, 0x38);
GenBranchRuntime(addrspace::write32, Condition::ne);
And(x0, x0, 0x3f);
Sub(x7, x0, sizeof(Sh4Context::sq_buffer), LeaveFlags);
Str(w1, MemOperand(x28, x7));
Str(w1, MemOperand(x28, x0));
Ret();

Label writeStoreQueue64Label;
Expand All @@ -1567,8 +1566,7 @@ class Arm64Assembler : public MacroAssembler
Cmp(x7, 0x38);
GenBranchRuntime(addrspace::write64, Condition::ne);
And(x0, x0, 0x3f);
Sub(x7, x0, sizeof(Sh4Context::sq_buffer), LeaveFlags);
Str(x1, MemOperand(x28, x7));
Str(x1, MemOperand(x28, x0));
Ret();

FinalizeCode();
Expand Down

0 comments on commit 9cb7d9e

Please sign in to comment.