summaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2015-02-25 10:39:25 +0100
committerAlexander Graf <agraf@suse.de>2015-03-09 15:00:03 +0100
commit21e5d28a4798f536525338f4f9137d83a9556491 (patch)
tree7b4de4680dfe13212b37d3daaddb19e595826ecc /target-ppc
parent04d2acbb57900f1cba2eef86b21ab78d854683db (diff)
downloadqemu-21e5d28a4798f536525338f4f9137d83a9556491.tar.gz
qemu-21e5d28a4798f536525338f4f9137d83a9556491.tar.bz2
qemu-21e5d28a4798f536525338f4f9137d83a9556491.zip
display cpu id dump state
Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 88c18e37b3..2a78e99d83 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -11214,8 +11214,9 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
int i;
cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
- TARGET_FMT_lx " XER " TARGET_FMT_lx "\n",
- env->nip, env->lr, env->ctr, cpu_read_xer(env));
+ TARGET_FMT_lx " XER " TARGET_FMT_lx " CPU#%d\n",
+ env->nip, env->lr, env->ctr, cpu_read_xer(env),
+ cs->cpu_index);
cpu_fprintf(f, "MSR " TARGET_FMT_lx " HID0 " TARGET_FMT_lx " HF "
TARGET_FMT_lx " idx %d\n", env->msr, env->spr[SPR_HID0],
env->hflags, env->mmu_idx);