arch-arm: Fix build errors with gcc 10.2
authorIru Cai <mytbk920423@gmail.com>
Fri, 21 Aug 2020 07:11:39 +0000 (15:11 +0800)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 10 Sep 2020 16:54:09 +0000 (16:54 +0000)
commit4aab23e34fa15395dd0d89e327c46766da0be273
treeb6c6af0532295ecc3d5bddaff67d578ea7ced467
parentf2bda57a96124890f14172a1b41fe74a2d5c6914
arch-arm: Fix build errors with gcc 10.2

The "-Werror=type-limits" flag in GCC 10.2 reports these errors,
because ``imm`` in neon.isa, and ``imm`` and ``count`` in sve.isa are
unsigned, and they're used to do ``imm < 0`` and ``imm * count >= 0``
comparison.

Change-Id: I33934357f578a9fc1040a6d9c08ea929fb36eb47
Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33154
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa/insts/neon.isa
src/arch/arm/isa/insts/sve.isa