target/riscv: Add check for supported privilege mode combinations