diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 20:32:22 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 20:32:22 +0000 |
commit | 8c6c919e281231dc3c77191b5a8c3c427ff17be8 (patch) | |
tree | 712248977fc60b902f2486aa165b88ef606b4398 /target-i386 | |
parent | e0dd114c163bfba86a736dae00fb70758e1c0200 (diff) | |
download | qemu-8c6c919e281231dc3c77191b5a8c3c427ff17be8.zip qemu-8c6c919e281231dc3c77191b5a8c3c427ff17be8.tar.gz qemu-8c6c919e281231dc3c77191b5a8c3c427ff17be8.tar.bz2 |
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
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/kvm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 2412ae4..49766e2 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -445,10 +445,6 @@ static int kvm_get_sregs(CPUState *env) } } env->hflags = (env->hflags & HFLAG_COPY_MASK) | hflags; - env->cc_src = env->eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); - env->df = 1 - (2 * ((env->eflags >> 10) & 1)); - env->cc_op = CC_OP_EFLAGS; - env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); return 0; } |