Skip to content

Commit e97be4f

Browse files
Merge patch series "Add RISC-V 32 NOMMU support"
Jesse Taube <mr.bossman075@gmail.com> says: This patch-set aims to add NOMMU support to RV32. Many people want to build simple emulators or HDL models of RISC-V this patch makes it possible to run linux on them. Yimin Gu is the original author of this set. Submitted here: https://lists.buildroot.org/pipermail/buildroot/2022-November/656134.html Though Jesse T rewrote the Dconf. * b4-shazam-merge: riscv: configs: Add nommu PHONY defconfig for RV32 riscv: Kconfig: Allow RV32 to build with no MMU Link: https://lore.kernel.org/r/20230301002657.352637-1-Mr.Bossman075@gmail.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2 parents e45d6a5 + 77c0c96 commit e97be4f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

arch/riscv/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ config MMU
178178

179179
config PAGE_OFFSET
180180
hex
181-
default 0xC0000000 if 32BIT
182-
default 0x80000000 if 64BIT && !MMU
181+
default 0xC0000000 if 32BIT && MMU
182+
default 0x80000000 if !MMU
183183
default 0xff60000000000000 if 64BIT
184184

185185
config KASAN_SHADOW_OFFSET
@@ -280,7 +280,6 @@ config ARCH_RV32I
280280
select GENERIC_LIB_ASHRDI3
281281
select GENERIC_LIB_LSHRDI3
282282
select GENERIC_LIB_UCMPDI2
283-
select MMU
284283

285284
config ARCH_RV64I
286285
bool "RV64I"

arch/riscv/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,7 @@ rv64_randconfig:
174174
PHONY += rv32_defconfig
175175
rv32_defconfig:
176176
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig 32-bit.config
177+
178+
PHONY += rv32_nommu_virt_defconfig
179+
rv32_nommu_virt_defconfig:
180+
$(Q)$(MAKE) -f $(srctree)/Makefile nommu_virt_defconfig 32-bit.config

0 commit comments

Comments
 (0)