diff options
author | Suraj Jitindar Singh <sjitindarsingh@gmail.com> | 2017-01-13 17:28:20 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-02-02 09:30:06 +1100 |
commit | d801a61e9803593cf95ed3aeeb175c32c8acea95 (patch) | |
tree | 509acfd98be77d7d99b2dba7ddb99077c2d8cd2b | |
parent | 78241762c483c9bb7a4834a6d1e6db512bb6a744 (diff) | |
download | qemu-d801a61e9803593cf95ed3aeeb175c32c8acea95.zip qemu-d801a61e9803593cf95ed3aeeb175c32c8acea95.tar.gz qemu-d801a61e9803593cf95ed3aeeb175c32c8acea95.tar.bz2 |
target/ppc/debug: Print LPCR register value if register exists
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>
-rw-r--r-- | target/ppc/translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |