Skip to content

Commit

Permalink
[LA64_DYNAREC] Fixed some minor issues on LBT path (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco authored Dec 27, 2024
1 parent e21a506 commit 8b2b96d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/dynarec/la64/dynarec_la64_00.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ uintptr_t dynarec64_00(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
gd = TO_NAT((opcode & 0x07) + (rex.b << 3));
POP1z(gd);
break;
break;
case 0x63:
if (rex.is32bits) {
// this is ARPL opcode
Expand Down Expand Up @@ -1220,6 +1219,7 @@ uintptr_t dynarec64_00(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
case 0x9C:
INST_NAME("PUSHF");
READFLAGS(X_ALL);
RESTORE_EFLAGS(x1);
PUSH1z(xFlags);
break;
case 0x9D:
Expand All @@ -1229,6 +1229,7 @@ uintptr_t dynarec64_00(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
MOV32w(x1, 0x3F7FD7);
AND(xFlags, xFlags, x1);
ORI(xFlags, xFlags, 0x202);
SPILL_EFLAGS();
SET_DFNONE();
if (box64_wine) { // should this be done all the time?
ANDI(x1, xFlags, 1 << F_TF);
Expand Down
2 changes: 0 additions & 2 deletions src/dynarec/la64/dynarec_la64_0f.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,6 @@ uintptr_t dynarec64_0F(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
} else if (!rex.w) {
ZEROUP(ed);
}
MARK;
break;
case 6:
INST_NAME("BTR Ed, Ib");
Expand All @@ -1093,7 +1092,6 @@ uintptr_t dynarec64_0F(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
} else if (!rex.w) {
ZEROUP(ed);
}
MARK;
break;
case 7:
INST_NAME("BTC Ed, Ib");
Expand Down
1 change: 1 addition & 0 deletions src/dynarec/la64/dynarec_la64_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ void iret_to_epilog(dynarec_la64_t* dyn, int ninst, int is64bits)
MOV32w(x1, 0x3F7FD7);
AND(xFlags, xFlags, x1);
ORI(xFlags, xFlags, 0x2);
SPILL_EFLAGS();
SET_DFNONE();
// POP RSP
if (is64bits) {
Expand Down

0 comments on commit 8b2b96d

Please sign in to comment.