From: Giacomo Travaglini Date: Wed, 12 Dec 2018 16:56:28 +0000 (+0000) Subject: arch-arm: Fix usage of RegId constructor for VecElem X-Git-Tag: v19.0.0.0~1274 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3ab99ef3ac16bd82b5eec4880e852fbbd31561f;p=gem5.git 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 --- 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: