[PATCH v3 02/11] riscv: add ISA extensions validation