* [Qemu-devel] [patch] Show thumb state in cpu dump
@ 2005-08-14 16:13 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-08-14 16:13 UTC (permalink / raw)
To: qemu-devel
The patch below makes the Arm CPU debugging dumps show the Thumb state bit
symbolically.
Paul
Index: target-arm/translate.c
===================================================================
RCS file: /cvsroot/qemu/qemu/target-arm/translate.c,v
retrieving revision 1.26
diff -u -p -r1.26 translate.c
--- target-arm/translate.c 13 May 2005 22:50:47 -0000 1.26
+++ target-arm/translate.c 14 Aug 2005 15:53:48 -0000
@@ -2204,12 +2214,13 @@ void cpu_dump_state(CPUState *env, FILE
else
cpu_fprintf(f, " ");
}
- cpu_fprintf(f, "PSR=%08x %c%c%c%c\n",
+ cpu_fprintf(f, "PSR=%08x %c%c%c%c %c\n",
env->cpsr,
env->cpsr & (1 << 31) ? 'N' : '-',
env->cpsr & (1 << 30) ? 'Z' : '-',
env->cpsr & (1 << 29) ? 'C' : '-',
- env->cpsr & (1 << 28) ? 'V' : '-');
+ env->cpsr & (1 << 28) ? 'V' : '-',
+ env->thumb ? 'T' : 'A');
for (i = 0; i < 16; i++) {
d.d = env->vfp.regs[i];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-14 16:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-14 16:13 [Qemu-devel] [patch] Show thumb state in cpu dump Paul Brook
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.