diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-11-02 14:18:16 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-11-13 15:59:01 +0000 |
commit | 4caa11a3bf0de4caca2a8851e5c0b584b5d309c2 (patch) | |
tree | c54d39928cf83aae3e89c3a631451e5c6855797d /src/arch/arm/insts | |
parent | 2bc7810cfc4feba7bd320cc65c78a3351dff5e3f (diff) | |
download | gem5-4caa11a3bf0de4caca2a8851e5c0b584b5d309c2.tar.xz |
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 <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>
Diffstat (limited to 'src/arch/arm/insts')
-rw-r--r-- | src/arch/arm/insts/static_inst.hh | 8 |
1 files changed, 7 insertions, 1 deletions
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; + } }; } |