[PATCH v4 21/30] riscv/traps: Introduce software check exception