projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7824176
)
target/ppc/debug: Print LPCR register value if register exists
author
Suraj Jitindar Singh
<sjitindarsingh@gmail.com>
Fri, 13 Jan 2017 06:28:20 +0000
(17:28 +1100)
committer
David Gibson
<david@gibson.dropbear.id.au>
Wed, 1 Feb 2017 22:30:06 +0000
(09:30 +1100)
It can be useful when debugging to print the LPCR value.
Thus we add the LPCR to the "info registers" output if the register had
been defined.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
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 772929e543d0c1e9770e8a66e167881c7cbedde5..5934185d60868ba7929ff55074295413b7ba9c69 100644
(file)
--- a/
target/ppc/translate.c
+++ b/
target/ppc/translate.c
@@
-6830,6
+6830,9
@@
void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
}
#endif
+ if (env->spr_cb[SPR_LPCR].name)
+ cpu_fprintf(f, " LPCR " TARGET_FMT_lx "\n", env->spr[SPR_LPCR]);
+
switch (env->mmu_model) {
case POWERPC_MMU_32B:
case POWERPC_MMU_601: