arch: Fix VecReg container alignement to 128bits view
authorJordi Vaquero <jordi.vaquero@metempsy.com>
Tue, 21 Apr 2020 13:37:33 +0000 (15:37 +0200)
committerJordi Vaquero <jordi.vaquero@metempsy.com>
Thu, 23 Apr 2020 11:07:49 +0000 (11:07 +0000)
commitb1623cb2087873f64197e503ab8894b5e4d4c7b4
treef4ac8c97895b3fb9b4a8c56e842c87670b933cc2
parent701d16c1b397c1688a43af656619c5e81cdd7dbe
arch: Fix VecReg container alignement to 128bits view

This Patch will fix the alignment problem that appears sometimes
when we try to create a view of 128 bits over the VecRegContainer
object.

That container is initially created as std::array<uint8_t, SIZE>, so
there is no obligation to be aligned to 16 bytes. This patches forces
all containers to be aligned to 16 bytes.

The problem has been observed in the Jira Issue:
https://gem5.atlassian.net/browse/GEM5-320

Change-Id: Id9fdd427bd7a4dc904edd519f31cc29c5b29c5e6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27968
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/generic/vec_reg.hh