[PATCH v2 0/4] Handle some invalid encodings

Brian Cain posted 4 patches 17 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260207180632.1042754-1-brian.cain@oss.qualcomm.com
Maintainers: Brian Cain <brian.cain@oss.qualcomm.com>, Laurent Vivier <laurent@vivier.eu>, Pierrick Bouvier <pierrick.bouvier@linaro.org>
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
[PATCH v2 0/4] Handle some invalid encodings
Posted by Brian Cain 17 hours ago
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