From ce201bba618d1a855639ca6e7fb9225109f95e12 Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 16 Jan 2024 09:10:46 +0800 Subject: [PATCH] risc-v/kconfig: move ARCH_HAVE_MMU into mmu type define Signed-off-by: chao an --- arch/risc-v/Kconfig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/risc-v/Kconfig b/arch/risc-v/Kconfig index fea9c6f88f..f2f908857d 100644 --- a/arch/risc-v/Kconfig +++ b/arch/risc-v/Kconfig @@ -141,7 +141,6 @@ config ARCH_CHIP_MPFS select ARCH_HAVE_FPU select ARCH_HAVE_DPFPU select ARCH_HAVE_MPU - select ARCH_HAVE_MMU select ARCH_MMU_TYPE_SV39 select ARCH_HAVE_ADDRENV select ARCH_NEED_ADDRENV_MAPPING @@ -168,7 +167,6 @@ config ARCH_CHIP_QEMU_RV select ARCH_HAVE_DPFPU select ARCH_HAVE_MULTICPU select ARCH_HAVE_MPU - select ARCH_HAVE_MMU select ARCH_MMU_TYPE_SV39 if ARCH_CHIP_QEMU_RV64 select ARCH_MMU_TYPE_SV32 if ARCH_CHIP_QEMU_RV32 select ARCH_HAVE_ADDRENV @@ -201,7 +199,6 @@ config ARCH_CHIP_JH7110 select ARCH_HAVE_DPFPU select ARCH_HAVE_MULTICPU select ARCH_HAVE_MPU - select ARCH_HAVE_MMU select ARCH_MMU_TYPE_SV39 select ARCH_HAVE_ADDRENV select ARCH_NEED_ADDRENV_MAPPING @@ -221,7 +218,6 @@ config ARCH_CHIP_BL808 select ARCH_HAVE_DPFPU select ARCH_HAVE_MULTICPU select ARCH_HAVE_MPU - select ARCH_HAVE_MMU select ARCH_MMU_TYPE_SV39 select ARCH_HAVE_ADDRENV select ARCH_NEED_ADDRENV_MAPPING @@ -241,7 +237,6 @@ config ARCH_CHIP_K230 select ARCH_HAVE_DPFPU select ARCH_HAVE_MISALIGN_EXCEPTION select ARCH_HAVE_MPU - select ARCH_HAVE_MMU select ARCH_MMU_TYPE_SV39 select ARCH_HAVE_ADDRENV select ARCH_NEED_ADDRENV_MAPPING @@ -352,10 +347,12 @@ endif config ARCH_MMU_TYPE_SV39 bool default n + select ARCH_HAVE_MMU config ARCH_MMU_TYPE_SV32 bool default n + select ARCH_HAVE_MMU config ARCH_HAVE_S_MODE bool @@ -443,7 +440,6 @@ config LITEX_CORE_VEXRISCV config LITEX_CORE_VEXRISCV_SMP bool "vexriscv_smp core" select ARCH_HAVE_MPU - select ARCH_HAVE_MMU select ARCH_RV_ISA_C select ARCH_MMU_TYPE_SV32 select ARCH_HAVE_ADDRENV