Merge pull request #20375 from zqb-all/riscv-spacemit-k1

RISCV: enable some cpu extensions for spacemit k1
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2025-05-20 11:59:35 +02:00
commit 3b47a225ba
1 file changed
+10
+10
View File
@@ -201,6 +201,16 @@ void CPUInfo::Detect()
RiscV_Zba = true;
RiscV_Zbb = true;
}
if ((parser.FirmwareMatchesCompatible("spacemit,k1-x"))
|| (parser.FirmwareMatchesCompatible("spacemit,k1"))) {
RiscV_Zba = true;
RiscV_Zbb = true;
RiscV_Zbc = true;
RiscV_Zbs = true;
RiscV_Zfh = true;
RiscV_Zfhmin = true;
RiscV_Zicond = true;
}
#endif
#if defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)