mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07: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:
parent
1b7bd32ac1
commit
f9dd13a309
@ -317,7 +317,6 @@ ARM64Reg Arm64GPRCache::R(const GuestRegInfo& guest_reg)
|
|||||||
ARM64Reg host_reg = bitsize != 64 ? GetReg() : EncodeRegTo64(GetReg());
|
ARM64Reg host_reg = bitsize != 64 ? GetReg() : EncodeRegTo64(GetReg());
|
||||||
m_emit->MOVI2R(host_reg, reg.GetImm());
|
m_emit->MOVI2R(host_reg, reg.GetImm());
|
||||||
reg.Load(host_reg);
|
reg.Load(host_reg);
|
||||||
reg.SetDirty(true);
|
|
||||||
return host_reg;
|
return host_reg;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user