summaryrefslogtreecommitdiff
path: root/src/arch/arm/predecoder.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:00 -0500
committerGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:00 -0500
commita59d219989ec048c16b5bcb14272b1eb09a1cde7 (patch)
treed0075d148f2bb3fe179cf7bd4895b98472b767ab /src/arch/arm/predecoder.hh
parent4ddeceba96c5e066d79138709091a6dffec17372 (diff)
downloadgem5-a59d219989ec048c16b5bcb14272b1eb09a1cde7.tar.xz
ARM: Add a bit to the ExtMachInst to select thumb mode.
Diffstat (limited to 'src/arch/arm/predecoder.hh')
-rw-r--r--src/arch/arm/predecoder.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/arm/predecoder.hh b/src/arch/arm/predecoder.hh
index bd4a7b03b..b21b77320 100644
--- a/src/arch/arm/predecoder.hh
+++ b/src/arch/arm/predecoder.hh
@@ -73,6 +73,7 @@ namespace ArmISA
void moreBytes(Addr pc, Addr fetchPC, MachInst inst)
{
emi = inst;
+ emi.thumb = (pc & (ULL(1) << PcTBitShift));
emi.sevenAndFour = bits(inst, 7) && bits(inst, 4);
emi.isMisc = (bits(inst, 24, 23) == 0x2 && bits(inst, 20) == 0);
}