XRSTOR: correct 'format' for case compaction is not enabled

This commit is contained in:
Stanislav Shwartsman 2024-01-29 19:40:21 +02:00
parent 7aa8489b1a
commit cf40e63b87

View File

@ -339,7 +339,7 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::XRSTOR(bxInstruction_c *i)
}
Bit32u requested_feature_bitmap = xcr0 & EAX;
Bit64u format = xcomp_bv & ~XSAVEC_COMPACTION_ENABLED;
Bit64u format = (compaction) ? (xcomp_bv & ~XSAVEC_COMPACTION_ENABLED) : (~XSAVEC_COMPACTION_ENABLED);
Bit32u restore_mask = xstate_bv & format;
/////////////////////////////////////////////////////////////////////////////