summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2018-12-12 16:56:28 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-01-15 17:09:53 +0000
commitf3ab99ef3ac16bd82b5eec4880e852fbbd31561f (patch)
tree44881571a47be7a7a1a32c55b67b03d189887df6
parentd4116b03ade72c8f0e73098d8a3f8563188717ac (diff)
downloadgem5-f3ab99ef3ac16bd82b5eec4880e852fbbd31561f.tar.xz
arch-arm: Fix usage of RegId constructor for VecElem
RegId() constructor requires three arguments in case of a VecElem register: the class, the vector index and the element index inside the vector, otherwise it panics. Change-Id: Ic842df4dcddaffa83b211aa6e1dd1953cafa4951 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15615 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
-rw-r--r--src/arch/arm/isa.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/arm/isa.hh b/src/arch/arm/isa.hh
index 1ec0f4676..2b1bdcb4a 100644
--- a/src/arch/arm/isa.hh
+++ b/src/arch/arm/isa.hh
@@ -444,7 +444,8 @@ namespace ArmISA
case VecRegClass:
return RegId(VecRegClass, flattenVecIndex(regId.index()));
case VecElemClass:
- return RegId(VecElemClass, flattenVecElemIndex(regId.index()));
+ return RegId(VecElemClass, flattenVecElemIndex(regId.index()),
+ regId.elemIndex());
case CCRegClass:
return RegId(CCRegClass, flattenCCIndex(regId.index()));
case MiscRegClass: