ARM: Add a traceflag to print cpsr

This commit is contained in:
Ali Saidi
2010-06-02 12:58:13 -05:00
parent 65a5177b53
commit aec73ba6af

View 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);