From 2d142070c54af2a600996783fa114a83ac8837da Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 18 Mar 2020 14:29:17 -0700 Subject: [PATCH] arm: Use a non-template indexed version of laneView in aapcs32. The lane number is constant over its lifetime, but is computed with a variable i which is not a compile time constant. It therefore can't be used as a template parameter, and should be marked as const and not constexpr. Change-Id: Ie0b950311495831d5224a8fb397cf42d5cf5f25b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26834 Reviewed-by: Bobby R. Bruce Maintainer: Giacomo Travaglini Tested-by: kokoro --- src/arch/arm/aapcs32.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arch/arm/aapcs32.hh b/src/arch/arm/aapcs32.hh index 3e9ad54a0..bfeb55374 100644 --- a/src/arch/arm/aapcs32.hh +++ b/src/arch/arm/aapcs32.hh @@ -572,12 +572,12 @@ struct ResultreadVecReg(id); - val.laneView() = ha[i]; + val.laneView(lane) = ha[i]; tc->setVecReg(id, val); } } -- 2.30.2