target/riscv: Convert the RISC-V exceptions to an enum