diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-01-31 11:26:54 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-01-31 11:26:54 +0100 |
commit | 416c60602f8170eb9deca65ae2236d18cd7d877e (patch) | |
tree | 413097f0b32e960458831a3645e1279e528225f9 /target-cris | |
parent | 698235aab6f55e960203dc2ef9a3a580982dae2f (diff) | |
download | qemu-416c60602f8170eb9deca65ae2236d18cd7d877e.zip qemu-416c60602f8170eb9deca65ae2236d18cd7d877e.tar.gz qemu-416c60602f8170eb9deca65ae2236d18cd7d877e.tar.bz2 |
cris: Prettify register dumps.
Use friendly names for registers in the dumps.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index a18d69c..a236b44 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"); } |