Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Oct 12, 2022
1 parent 9b169c4 commit 0620cb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dynarec/dynarec_arm_66f0.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ uintptr_t dynarec66F0(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nins
}
if(!fixedaddress || (fixedaddress && !(fixedaddress&1))) {
MARKLOCK;
LDREX(x1, wback);
LDREXH(x1, wback);
emit_add16c(dyn, ninst, x1, i16, x3, x14);
STREX(x3, x1, wback);
STREXH(x3, x1, wback);
CMPS_IMM8(x3, 0);
B_MARKLOCK(cNE);
}
Expand All @@ -76,14 +76,14 @@ uintptr_t dynarec66F0(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nins
}
if(!fixedaddress || (fixedaddress && (fixedaddress&1))) {
MARK; // unaligned! also, not enough
LDR_IMM9(x1, wback, 0);
LDRH_IMM8(x1, wback, 0);
LDREXB(x14, wback);
BFI(x1, x14, 0, 8); // re-inject
emit_add16c(dyn, ninst, x1, i16, x3, x14);
STREXB(x3, x1, wback);
CMPS_IMM8(x3, 0);
B_MARK(cNE);
STR_IMM9(x1, wback, 0); // put the whole value
STRH_IMM8(x1, wback, 0); // put the whole value
}
DMB_ISH();
}
Expand Down

0 comments on commit 0620cb0

Please sign in to comment.