Commit 8c6c919e281231dc3c77191b5a8c3c427ff17be8
1 parent
e0dd114c
kvm-x86: Remove eflags conversion into emulator format (Jan Kiszka)
It seems that the conversion of the kernel-delivered eflags state into qemu's internal split representation was once needed in an older kvm design (register read-back may have taken place from inside cpu_exec). Today it is plain wrong and causes incorrect cpu state reporting (gdb, monitor) and should also corrupt its saving (savevm, migration). Drop the related lines. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6461 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
0 additions
and
4 deletions
target-i386/kvm.c
... | ... | @@ -445,10 +445,6 @@ static int kvm_get_sregs(CPUState *env) |
445 | 445 | } |
446 | 446 | } |
447 | 447 | env->hflags = (env->hflags & HFLAG_COPY_MASK) | hflags; |
448 | - env->cc_src = env->eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); | |
449 | - env->df = 1 - (2 * ((env->eflags >> 10) & 1)); | |
450 | - env->cc_op = CC_OP_EFLAGS; | |
451 | - env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); | |
452 | 448 | |
453 | 449 | return 0; |
454 | 450 | } | ... | ... |