arch-arm: Interface for the ArmStaticInst intWidth field
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 2 Nov 2017 14:18:16 +0000 (14:18 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 13 Nov 2017 15:59:01 +0000 (15:59 +0000)
ARMv8 Tracers might want to be able to read the intWidth field of the
ArmStaticInst object. The field is specifying the bit width of the
integer registers used by the current instruction.

Change-Id: Iaee3123823a2c7380917001c453377c1c12e54a7
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5661
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/arch/arm/insts/static_inst.hh

index 5c6a315a1a73a124da4500b6e1270ad7c46951e0..431e81b0747975fac0f1c39a3971f2c0779cb5df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010-2013, 2016 ARM Limited
+ * Copyright (c) 2010-2013,2016-2017 ARM Limited
  * All rights reserved
  *
  * The license below extends only to copyright in the software and shall
@@ -417,6 +417,12 @@ class ArmStaticInst : public StaticInst
   public:
     virtual void
     annotateFault(ArmFault *fault) {}
+
+    uint8_t
+    getIntWidth() const
+    {
+        return intWidth;
+    }
 };
 }