Skip to content

Commit

Permalink
[ARM64_DYNAREC] Small optim for DB E2 opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jan 19, 2025
1 parent 5654e77 commit e6eac39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dynarec/arm64/dynarec_arm64_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ uintptr_t dynarec64_DB(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
case 0xE2:
INST_NAME("FNCLEX");
LDRH_U12(x2, xEmu, offsetof(x64emu_t, sw));
MOV32w(x1, 0);
BFIw(x2, x1, 0, 8); // IE .. PE, SF, ES
BFIw(x2, x1, 15, 1); // B
BFCw(x2, 0, 8); // IE .. PE, SF, ES
BFCw(x2, 15, 1); // B
STRH_U12(x2, xEmu, offsetof(x64emu_t, sw));
break;
case 0xE3:
Expand Down

0 comments on commit e6eac39

Please sign in to comment.