summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-01-31 11:26:54 +0100
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-01-31 11:26:54 +0100
commit416c60602f8170eb9deca65ae2236d18cd7d877e (patch)
tree413097f0b32e960458831a3645e1279e528225f9
parent698235aab6f55e960203dc2ef9a3a580982dae2f (diff)
cris: Prettify register dumps.
Use friendly names for registers in the dumps. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r--target-cris/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index a18d69c84..a236b444a 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -3366,13 +3366,13 @@ void cpu_dump_state (CPUState *env, FILE *f,
for (i = 0; i < 16; i++) {
- cpu_fprintf(f, "r%2.2d=%8.8x ", i, env->regs[i]);
+ cpu_fprintf(f, "%s=%8.8x ",regnames[i], env->regs[i]);
if ((i + 1) % 4 == 0)
cpu_fprintf(f, "\n");
}
cpu_fprintf(f, "\nspecial regs:\n");
for (i = 0; i < 16; i++) {
- cpu_fprintf(f, "p%2.2d=%8.8x ", i, env->pregs[i]);
+ cpu_fprintf(f, "%s=%8.8x ", pregnames[i], env->pregs[i]);
if ((i + 1) % 4 == 0)
cpu_fprintf(f, "\n");
}