sim: mips: call Unpredictable instead of setting bogus values [PR sim/29276]
authorMike Frysinger <vapier@gentoo.org>
Fri, 4 Nov 2022 00:38:20 +0000 (07:38 +0700)
committerMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2022 07:55:50 +0000 (14:55 +0700)
commit2756004fe78954754946b61d3f6338d8b72b8332
tree6628f729649c9f9cb1fb4f15b99a813f86a8bb12
parent195064c8da5a86a602d6312c5ad31b2bdb3721f9
sim: mips: call Unpredictable instead of setting bogus values [PR sim/29276]

The intention of this code seems to be to indicate that this insn
should not be used and produces undefined behavior, so instead of
setting registers to bogus values, call Unpredictable.  This fixes
build warnings due to 32-bit/64-bit type conversions, and outputs
a log message for users at runtime instead of silent corruption.

Bug: https://sourceware.org/PR29276
sim/mips/mips.igen