[PATCH v3 21/29] riscv/traps: Introduce software check exception