arm: Use zero initialization for the BigRegVect types.
authorGabe Black <gabeblack@google.com>
Tue, 15 Sep 2020 02:40:42 +0000 (19:40 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 16 Sep 2020 06:08:02 +0000 (06:08 +0000)
commit15faee77ec49b9a0dfebaf7cc02dc11dd7f7285f
treea7f120563738a639966e3713955b7ae234150294
parentb5850b69d1bad721b04344f19de69097040f8b91
arm: Use zero initialization for the BigRegVect types.

These were being initialized with BigRegVect brv = {0}, which made the
compiler complain because there is internal structure. The first element
of the union is actually an array, and this was telling it to initialize
that array to scalar 0. It was warning about this which was breaking the
build.

Instead, use zero initlization like BigRegVect brv = {}. This
initializes the first element of the union to all zeroes, with all
padding bits initialized to zero as well.

This satisfies the compiler and avoids a build error.

Change-Id: I31e7a8730c538637ff2e0c7fb00a4e12ed05e074
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34575
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa/insts/neon.isa
src/arch/arm/isa/insts/neon64.isa