ARM: Add a traceflag to print cpsr
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 2 Jun 2010 17:58:13 +0000 (12:58 -0500)
src/arch/arm/isa.hh

index 8d547f9c67f6c4e0ea83dba730320f752cc31eac..ded463267b49b750819165ec4eeb9059fd515dcd 100644 (file)
@@ -238,6 +238,8 @@ namespace ArmISA
             if (misc_reg == MISCREG_CPSR) {
                 updateRegMap(val);
                 CPSR cpsr = val;
+                DPRINTF(Arm, "Updating CPSR to %#x f:%d i:%d a:%d mode:%#x\n",
+                        cpsr, cpsr.f, cpsr.i, cpsr.a, cpsr.mode);
                 Addr npc = tc->readNextPC() & ~PcModeMask;
                 if (cpsr.j)
                     npc = npc | (ULL(1) << PcJBitShift);