This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 04f81ecddb arch: risc-v: Do not enable FPU for K210 with QEMU
04f81ecddb is described below

commit 04f81ecddb718d0d289871a6e5f6e17194b33894
Author: Masayuki Ishikawa <[email protected]>
AuthorDate: Fri Apr 22 13:21:13 2022 +0900

    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 <[email protected]>
---
 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

Reply via email to