From 04f81ecddb718d0d289871a6e5f6e17194b33894 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 22 Apr 2022 13:21:13 +0900 Subject: [PATCH] arch: risc-v: Do not enable FPU for K210 with QEMU Summary: - I noticed that maix-bit:smp does not work with QEMU. - Actually, QEMU supports sifive_u (not K210) but it works if FPU is disabled. - This commit fixes this issue. Impact: - K210 with QEMU only Testing: - Tested with qemu-5.2 Signed-off-by: Masayuki Ishikawa --- arch/risc-v/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/risc-v/Kconfig b/arch/risc-v/Kconfig index 5150ba5a9d..961bb51def 100644 --- a/arch/risc-v/Kconfig +++ b/arch/risc-v/Kconfig @@ -27,8 +27,8 @@ config ARCH_CHIP_K210 select ARCH_RV_ISA_M select ARCH_RV_ISA_A select ARCH_RV_ISA_C - select ARCH_HAVE_FPU - select ARCH_HAVE_DPFPU + select ARCH_HAVE_FPU if !K210_WITH_QEMU + select ARCH_HAVE_DPFPU if !K210_WITH_QEMU select ARCH_HAVE_MPU select ARCH_HAVE_TESTSET select ARCH_HAVE_MULTICPU