@samitouri / QOSamiQemu / commits / a33a57f8d2

whpx: i386: flags conversion for target/i386/emulate internal state

Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260223233950.96076-12-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Mohamed Mediouni committed Feb 24, 2026 at 00:39 UTC a33a57f8d24988ec2e89ad5cd8c262788ebfac8b
1 file changed +2
target/i386/whpx/whpx-all.c
+2
@@ -412,6 +412,7 @@ void whpx_set_registers(CPUState *cpu, int level)
412 vcxt.values[idx++].Reg64 = env->eip;
413
414 assert(whpx_register_names[idx] == WHvX64RegisterRflags);
415 + lflags_to_rflags(env);
416 vcxt.values[idx++].Reg64 = env->eflags;
417
418 /* Translate 6+4 segment registers. HV and QEMU order matches */
@@ -637,6 +638,7 @@ void whpx_get_registers(CPUState *cpu)
638 env->eip = vcxt.values[idx++].Reg64;
639 assert(whpx_register_names[idx] == WHvX64RegisterRflags);
640 env->eflags = vcxt.values[idx++].Reg64;
641 + rflags_to_lflags(env);
642
643 /* Translate 6+4 segment registers. HV and QEMU order matches */
644 assert(idx == WHvX64RegisterEs);