From: Gabe Black Date: Wed, 18 Mar 2020 21:29:17 +0000 (-0700) Subject: arm: Use a non-template indexed version of laneView in aapcs32. X-Git-Tag: v20.0.0.0~299 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d142070c54af2a600996783fa114a83ac8837da;p=gem5.git 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 --- 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); } }