Patchwork i386: Drop redundant kvm_enabled test

login
register
mail settings
Submitter Jan Kiszka
Date Sept. 12, 2009, 2:50 p.m.
Message ID <4AABB51F.20106@web.de>
Download mbox | patch
Permalink /patch/33530/
State Superseded
Headers show

Comments

Jan Kiszka - Sept. 12, 2009, 2:50 p.m.
cpu_synchronize_state already does this.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 target-i386/helper.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/target-i386/helper.c b/target-i386/helper.c
index 45b04ee..8111f25 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -743,8 +743,7 @@  void cpu_dump_state(CPUState *env, FILE *f,
     char cc_op_name[32];
     static const char *seg_name[6] = { "ES", "CS", "SS", "DS", "FS", "GS" };
 
-    if (kvm_enabled())
-        cpu_synchronize_state(env);
+    cpu_synchronize_state(env);
 
     eflags = env->eflags;
 #ifdef TARGET_X86_64