aboutsummaryrefslogtreecommitdiff
path: root/kqemu.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-24 18:03:37 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-24 18:03:37 +0000
commitc45b3c0e1b5125d1588c988dca2174bf3cfa5287 (patch)
treefa0ceb16a96a7d77314152477b76cb5603f64289 /kqemu.c
parente04f40b5aaded924d4f751d54762ffb6e6ab2e0f (diff)
efer is present even in legacy mode
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1393 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'kqemu.c')
-rw-r--r--kqemu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kqemu.c b/kqemu.c
index f882c8b2fc..4d152502e7 100644
--- a/kqemu.c
+++ b/kqemu.c
@@ -431,7 +431,7 @@ int kqemu_cpu_exec(CPUState *env)
kenv->cr3 = env->cr[3];
kenv->cr4 = env->cr[4];
kenv->a20_mask = env->a20_mask;
-#ifdef __x86_64__
+#if KQEMU_VERSION >= 0x010100
kenv->efer = env->efer;
#endif
if (env->dr[7] & 0xff) {
@@ -530,6 +530,11 @@ int kqemu_cpu_exec(CPUState *env)
#endif
return 1;
} else if (ret == KQEMU_RET_INTR) {
+#ifdef DEBUG
+ if (loglevel & CPU_LOG_INT) {
+ cpu_dump_state(env, logfile, fprintf, 0);
+ }
+#endif
return 0;
} else if (ret == KQEMU_RET_SOFTMMU) {
return 2;