ARM: Define a mask to differentiate purely CPSR bits from CondCodes bits.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 15 Nov 2009 03:22:30 +0000 (19:22 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 15 Nov 2009 03:22:30 +0000 (19:22 -0800)
src/arch/arm/miscregs.hh

index 45233a7646c0c24808f184500c0d0cab6a26ee82..d100efb8ee7705ebc7a98bb1f1dcebd3f4c022e6 100644 (file)
@@ -93,6 +93,10 @@ namespace ArmISA
         Bitfield<4, 0> mode;
     EndBitUnion(CPSR)
 
+    // This mask selects bits of the CPSR that actually go in the CondCodes
+    // integer register to allow renaming.
+    static const uint32_t CondCodesMask = 0xF80F0000;
+
     BitUnion32(SCTLR)
         Bitfield<30> te;  // Thumb Exception Enable
         Bitfield<29> afe; // Access flag enable