|
@@ -57,5 +57,12 @@ void riscv_fill_hwcap(void)
|
|
for (i = 0; i < strlen(isa); ++i)
|
|
for (i = 0; i < strlen(isa); ++i)
|
|
elf_hwcap |= isa2hwcap[(unsigned char)(isa[i])];
|
|
elf_hwcap |= isa2hwcap[(unsigned char)(isa[i])];
|
|
|
|
|
|
|
|
+ /* We don't support systems with F but without D, so mask those out
|
|
|
|
+ * here. */
|
|
|
|
+ if ((elf_hwcap & COMPAT_HWCAP_ISA_F) && !(elf_hwcap & COMPAT_HWCAP_ISA_D)) {
|
|
|
|
+ pr_info("This kernel does not support systems with F but not D");
|
|
|
|
+ elf_hwcap &= ~COMPAT_HWCAP_ISA_F;
|
|
|
|
+ }
|
|
|
|
+
|
|
pr_info("elf_hwcap is 0x%lx", elf_hwcap);
|
|
pr_info("elf_hwcap is 0x%lx", elf_hwcap);
|
|
}
|
|
}
|