projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635dff2
)
ppc: Print HSRR0/HSRR1 in "info registers"
author
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Mon, 27 Jun 2016 06:55:21 +0000
(08:55 +0200)
committer
David Gibson
<david@gibson.dropbear.id.au>
Thu, 30 Jun 2016 23:57:01 +0000
(09:57 +1000)
They are generally useful when debugging HV mode stuff
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[clg: fixed checkpatch.pl errors ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate.c
patch
|
blob
|
history
diff --git
a/target-ppc/translate.c
b/target-ppc/translate.c
index 2f1c59166eda2b1ea1adf62ce30d519c11ad88ed..49fe761407082197241ca3474c2c707f4237cc51 100644
(file)
--- a/
target-ppc/translate.c
+++ b/
target-ppc/translate.c
@@
-11407,6
+11407,13
@@
void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
env->spr[SPR_SPRG4], env->spr[SPR_SPRG5],
env->spr[SPR_SPRG6], env->spr[SPR_SPRG7]);
+#if defined(TARGET_PPC64)
+ if (env->excp_model == POWERPC_EXCP_POWER7 ||
+ env->excp_model == POWERPC_EXCP_POWER8) {
+ cpu_fprintf(f, "HSRR0 " TARGET_FMT_lx " HSRR1 " TARGET_FMT_lx "\n",
+ env->spr[SPR_HSRR0], env->spr[SPR_HSRR1]);
+ }
+#endif
if (env->excp_model == POWERPC_EXCP_BOOKE) {
cpu_fprintf(f, "CSRR0 " TARGET_FMT_lx " CSRR1 " TARGET_FMT_lx
" MCSRR0 " TARGET_FMT_lx " MCSRR1 " TARGET_FMT_lx "\n",