Merge pull request #12274 from JosJuice/jitarm64-non-dirty-immediates

JitArm64: Fix some oddities with non-dirty immediates
This commit is contained in:
Admiral H. Curtiss 2023-11-08 20:44:32 +01:00 committed by GitHub
commit 620fbcdfb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -232,10 +232,10 @@ void Arm64GPRCache::FlushRegister(size_t index, bool maintain_state, ARM64Reg tm
if (allocated_tmp_reg)
UnlockRegister(tmp_reg);
}
if (!maintain_state)
reg.Flush();
}
if (!maintain_state)
reg.Flush();
}
}
@ -317,7 +317,6 @@ ARM64Reg Arm64GPRCache::R(const GuestRegInfo& guest_reg)
ARM64Reg host_reg = bitsize != 64 ? GetReg() : EncodeRegTo64(GetReg());
m_emit->MOVI2R(host_reg, reg.GetImm());
reg.Load(host_reg);
reg.SetDirty(true);
return host_reg;
}
break;