From: Ali Saidi Date: Mon, 15 Nov 2010 20:04:05 +0000 (-0600) Subject: ARM: Add comment about the organization of the IT state register X-Git-Tag: stable_2012_02_02~733 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f59e195d61c9144c817aab4a9179036adad6c9c;p=gem5.git ARM: Add comment about the organization of the IT state register --- diff --git a/src/arch/arm/miscregs.hh b/src/arch/arm/miscregs.hh index aa3f47419..2bb1cdb15 100644 --- a/src/arch/arm/miscregs.hh +++ b/src/arch/arm/miscregs.hh @@ -262,6 +262,12 @@ namespace ArmISA EndBitUnion(CPSR) BitUnion8(ITSTATE) + /* Note that the split (cond, mask) below is not as in ARM ARM. + * But it is more convenient for simulation. The condition + * is always the concatenation of the top 3 bits and the next bit, + * which applies when one of the bottom 4 bits is set. + * Refer to predecoder.cc for the use case. + */ Bitfield<7, 4> cond; Bitfield<3, 0> mask; // Bitfields for moving to/from CPSR