diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-07-01 22:11:27 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-07-01 22:11:27 -0700 |
commit | f409d7819d58226af2b6d7c0b95c801316180e76 (patch) | |
tree | 9ec9a84619686309d9051c5f72b2307f4b0994cc /src/arch/arm/predecoder.hh | |
parent | 1f0c0a66881b9e45a5572fea9f780b90dc30a259 (diff) | |
download | gem5-f409d7819d58226af2b6d7c0b95c801316180e76.tar.xz |
ARM: Add in some new artificial fields that make decoding a little easier.
Diffstat (limited to 'src/arch/arm/predecoder.hh')
-rw-r--r-- | src/arch/arm/predecoder.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/arm/predecoder.hh b/src/arch/arm/predecoder.hh index 2c0b773a0..bd4a7b03b 100644 --- a/src/arch/arm/predecoder.hh +++ b/src/arch/arm/predecoder.hh @@ -73,6 +73,8 @@ namespace ArmISA void moreBytes(Addr pc, Addr fetchPC, MachInst inst) { emi = inst; + emi.sevenAndFour = bits(inst, 7) && bits(inst, 4); + emi.isMisc = (bits(inst, 24, 23) == 0x2 && bits(inst, 20) == 0); } //Use this to give data to the predecoder. This should be used |