qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PULL 102/107] target/ppc/debug: Print LPCR register value if


From: David Gibson
Subject: [Qemu-ppc] [PULL 102/107] target/ppc/debug: Print LPCR register value if register exists
Date: Thu, 2 Feb 2017 16:14:40 +1100

From: Suraj Jitindar Singh <address@hidden>

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 <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
 target/ppc/translate.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/ppc/translate.c b/target/ppc/translate.c
index 772929e..5934185 100644
--- 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:
-- 
2.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]