X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=monitor.c;h=70b473ddbff6ba7b3b3373485a05640675a88d2e;hb=e80e1cc4b18d388227d2fa6b8551929a381d2490;hp=85a997db86b5d04f5943cc73efc14f94213dc3ea;hpb=6a00d60127dc0e1d4efadafe1feb88f05030fe52;p=qemu diff --git a/monitor.c b/monitor.c index 85a997d..70b473d 100644 --- a/monitor.c +++ b/monitor.c @@ -253,7 +253,11 @@ 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)"); +#elif defined(TARGET_PPC) + term_printf(" nip=0x" TARGET_FMT_lx, env->nip); + if (msr_pow) term_printf(" (halted)"); #endif term_printf("\n");