From 4caa11a3bf0de4caca2a8851e5c0b584b5d309c2 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 2 Nov 2017 14:18:16 +0000 Subject: arch-arm: Interface for the ArmStaticInst intWidth field 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 Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/5661 Maintainer: Andreas Sandberg --- src/arch/arm/insts/static_inst.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/arch/arm/insts/static_inst.hh b/src/arch/arm/insts/static_inst.hh index 5c6a315a1..431e81b07 100644 --- a/src/arch/arm/insts/static_inst.hh +++ b/src/arch/arm/insts/static_inst.hh @@ -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; + } }; } -- cgit v1.2.3