Skip to content

Commit 4c35bde

Browse files
lupyuenxiaoxiang781216
authored andcommitted
risc-v/bl808: Configure MMU to cache User Text, Data and Heap
This PR configures the BL808 MMU to cache the the User Text, Data and Heap. We enable the T-Head MMU Flags for Shareable, Bufferable and Cacheable, as explained in the previous PR: apache#13199 This PR fixes the Slow Memory Access for NuttX Apps on Ox64 BL808 SBC: apache#12696. With this fix, Ox64 NuttX CoreMark jumps from 19 to 1,104. (Close to Buildroot Linux CoreMark) Modified Files: `arch/risc-v/Kconfig`: Enabled `ARCH_MMU_EXT_THEAD` for BL808 SoC.
1 parent 45625cb commit 4c35bde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/risc-v/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ config ARCH_CHIP_BL808
295295
select ARCH_HAVE_MULTICPU
296296
select ARCH_HAVE_MPU
297297
select ARCH_MMU_TYPE_SV39
298+
select ARCH_MMU_EXT_THEAD
298299
select ARCH_HAVE_ADDRENV
299300
select ARCH_NEED_ADDRENV_MAPPING
300301
select ARCH_HAVE_S_MODE

0 commit comments

Comments
 (0)