mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
JitArm64: Preserve dirty flag when materializing immediate
Beforedbf5dca
, the dirty flag had no meaning for an immediate value, so we made sure to always set the dirty flag when switching a register from Immediate to Register. But afterdbf5dca
, that is no longer the case. If an immediate is marked as not dirty, we can keep the register marked as not dirty after materializing the value. This way we skip having to write it back to ppcState later.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user