arch-arm: just return the fault in twoEqualRegInst{,Fp}
authorIru Cai <mytbk920423@gmail.com>
Thu, 10 Sep 2020 06:18:19 +0000 (14:18 +0800)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 10 Sep 2020 16:54:09 +0000 (16:54 +0000)
commit59a3f3365fcb2445877ecfac09dce55e7bb9198e
tree7fb9d9ab03e04e98a760f8518eb5ecf20b6b7e6d
parent4aab23e34fa15395dd0d89e327c46766da0be273
arch-arm: just return the fault in twoEqualRegInst{,Fp}

This prevents the code from using the uninitialized destReg when
running the ``if (imm >= eCount)`` branch, which will make GCC 10.2
report a -Werror=maybe-uninitialized error when building gem5.opt.

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