Skip to content

Commit

Permalink
[RV64_DYNAREC] Fixed a regression introduced recently ([LA64_DYNAREC]…
Browse files Browse the repository at this point in the history
… too)
  • Loading branch information
ksco committed Feb 18, 2025
1 parent 0d1488b commit ab60e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dynarec/la64/dynarec_la64_00.c
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@ uintptr_t dynarec64_00(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
SETFLAGS(X_ALL, SF_SET_PENDING, NAT_FLAGS_FUSION); // some flags are left undefined
if (!dyn->insts[ninst].x64.gen_flags) {
GETED(0);
SLL_D(ed, ed, xRCX);
SLLxw(ed, ed, xRCX);
if (dyn->insts[ninst].nat_flags_fusion) {
if (!rex.w) ZEROUP(ed);
NAT_FLAGS_OPS(ed, xZR);
Expand All @@ -2213,7 +2213,7 @@ uintptr_t dynarec64_00(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
SETFLAGS(X_ALL, SF_SET_PENDING, NAT_FLAGS_FUSION); // some flags are left undefined
if (!dyn->insts[ninst].x64.gen_flags) {
GETED(0);
SRL_D(ed, ed, xRCX);
SRLxw(ed, ed, xRCX);
if (dyn->insts[ninst].nat_flags_fusion) {
if (!rex.w) ZEROUP(ed);
NAT_FLAGS_OPS(ed, xZR);
Expand Down
4 changes: 2 additions & 2 deletions src/dynarec/rv64/dynarec_rv64_00_3.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ uintptr_t dynarec64_00_3(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int
SETFLAGS(X_ALL, SF_SET_PENDING, NAT_FLAGS_FUSION); // some flags are left undefined
if (!dyn->insts[ninst].x64.gen_flags) {
GETED(0);
SLL(ed, ed, xRCX);
SLLxw(ed, ed, xRCX);
if (dyn->insts[ninst].nat_flags_fusion) {
if (!rex.w) ZEROUP(ed);
NAT_FLAGS_OPS(ed, xZR);
Expand All @@ -818,7 +818,7 @@ uintptr_t dynarec64_00_3(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int
SETFLAGS(X_ALL, SF_SET_PENDING, NAT_FLAGS_FUSION); // some flags are left undefined
if (!dyn->insts[ninst].x64.gen_flags) {
GETED(0);
SRL(ed, ed, xRCX);
SRLxw(ed, ed, xRCX);
if (dyn->insts[ninst].nat_flags_fusion) {
if (!rex.w) ZEROUP(ed);
NAT_FLAGS_OPS(ed, xZR);
Expand Down

0 comments on commit ab60e87

Please sign in to comment.