TODO_RISCV64 is a boring crash, let's crash in fun and interesting ways! There's actually more crashes we should check for, like misaligned stacks and memory accesses, priviledged CSRs, etc., for now only the generic ones are implemented.
Rebase of #22880
CC @spholz
crash: Make everything more architecture-independent
Document exactly which crash features are available on which
architectures. There's several interesting crash tests we will want to
add for specific architectures, such as misaligned memory accesses.
Don't compile the divide by zero crash test on RISC-V, as they simply
don't crash here.
Rename the test for "x86 User Mode Instruction Prevention" to a more
generic "try to execute a priviledged instruction"; whatever that
specifically entails on any given architecture.
Rename a bunch of internal variables to more generic names.
Wrap the x86-specific implementation of "execute non executable
memory" in architecture preprocessor checks.
crash: Add RISC-V implementations for all architecture-specific tests
TODO_RISCV64 is a boring crash, let's crash in fun and interesting ways! There's actually more crashes we should check for, like misaligned stacks and memory accesses, priviledged CSRs, etc., for now only the generic ones are implemented.
Rebase of #22880
CC @spholz
crash: Make everything more architecture-independent
crash: Add RISC-V implementations for all architecture-specific tests
Co-authored-by: Sönke Holz sholz8530@gmail.com
crash: Add misaligned instruction fetch test for RISC-V+AArch64