From f3ab99ef3ac16bd82b5eec4880e852fbbd31561f Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Wed, 12 Dec 2018 16:56:28 +0000 Subject: 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 Reviewed-by: Giacomo Gabrielli Reviewed-on: https://gem5-review.googlesource.com/c/15615 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/arch/arm/isa.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3