[ARM64_DYNAREC] Changed BSF/BSR to not changed Ed if Gd==0 (seems current cpu does this)

This commit is contained in:
ptitSeb
2025-10-10 16:21:50 +02:00
parent 65b6f716d5
commit 0a0228eae2

View File

@@ -2362,8 +2362,6 @@ uintptr_t dynarec64_0F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
nextop = F8;
GETED(0);
GETGD;
if(!MODREG)
MOVxw_REG(gd, ed); // to handle ed=0, setting UD gd to 0
IFX(X_ZF) {
TSTxw_REG(ed, ed);
B_MARK(cEQ);
@@ -2398,8 +2396,6 @@ uintptr_t dynarec64_0F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
nextop = F8;
GETED(0);
GETGD;
if(!MODREG)
MOVxw_REG(gd, ed); // to handle ed=0, setting UD gd to 0
IFX(X_ZF) {
TSTxw_REG(ed, ed);
B_MARK(cEQ);