From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4LMI-0005Ea-0L for qemu-devel@nongnu.org; Sun, 14 Aug 2005 12:29:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4LMA-0005BO-BV for qemu-devel@nongnu.org; Sun, 14 Aug 2005 12:29:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4LM9-000557-JX for qemu-devel@nongnu.org; Sun, 14 Aug 2005 12:29:05 -0400 Received: from [65.74.133.11] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E4LMQ-0006Yg-IU for qemu-devel@nongnu.org; Sun, 14 Aug 2005 12:29:23 -0400 From: Paul Brook Date: Sun, 14 Aug 2005 17:13:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508141713.43550.paul@codesourcery.com> Subject: [Qemu-devel] [patch] Show thumb state in cpu dump Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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];