SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.45k stars 3.18k forks source link

crash: RISC-V-ification, /usr/Tests/Kernel/crash edition #24626

Closed kleinesfilmroellchen closed 3 months ago

kleinesfilmroellchen commented 3 months ago

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