]> git.proxmox.com Git - mirror_qemu.git/blobdiff - monitor.c
better halted state support
[mirror_qemu.git] / monitor.c
index 85a997db86b5d04f5943cc73efc14f94213dc3ea..9befd82b06eb0607f9ef34678a10c5f24c6589b0 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -253,7 +253,7 @@ static void do_info_cpus(void)
                     env->cpu_index);
 #if defined(TARGET_I386)
         term_printf(" pc=0x" TARGET_FMT_lx, env->eip + env->segs[R_CS].base);
-        if (env->cpu_halted)
+        if (env->hflags & HF_HALTED_MASK)
             term_printf(" (halted)");
 #endif
         term_printf("\n");