Fix the issues reported by Alex Rønne Petersen causing zig test suite
failures. The 0x0 case is a conflicting "multiple register write" - the
handler here will cover duplexes but not the more general case of multiple
register writes. I'll include that in a subsequent patchset.
v2: use a signal handler for SIGILL, combine the tests. S-b Pierrick.
Brian Cain (4):
target/hexagon: Fix invalid duplex decoding
target/hexagon: Reject duplex encodings with duplicate dest registers
target/hexagon: Return decode failure for invalid non-duplex encodings
tests/tcg/hexagon: Handle SIGILL internally in invalid-slots test
linux-user/hexagon/cpu_loop.c | 4 +
target/hexagon/decode.c | 28 +++++-
target/hexagon/translate.c | 18 +++-
tests/tcg/hexagon/invalid-encoding.c | 135 +++++++++++++++++++++++++++
tests/tcg/hexagon/invalid-slots.c | 76 +++++++++++----
tests/tcg/hexagon/Makefile.target | 7 +-
6 files changed, 240 insertions(+), 28 deletions(-)
create mode 100644 tests/tcg/hexagon/invalid-encoding.c
--
2.34.1