[PATCH v4 09/17] riscv: Add option to support RISC-V privileged spec 1.9.1