qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] Show thumb state in cpu dump
Date: Sun, 14 Aug 2005 17:13:43 +0100	[thread overview]
Message-ID: <200508141713.43550.paul@codesourcery.com> (raw)

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];

                 reply	other threads:[~2005-08-14 16:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200508141713.43550.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).