[PATCH v11 15/21] riscv: Add option to support RISC-V privileged spec 1.9