Skip to content

Commit

Permalink
risc-v/bl808: Configure MMU to cache User Text, Data and Heap
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lupyuen committed Aug 28, 2024
1 parent d59fbfd commit c398049
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/risc-v/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ config ARCH_CHIP_BL808
select ARCH_HAVE_MULTICPU
select ARCH_HAVE_MPU
select ARCH_MMU_TYPE_SV39
select ARCH_MMU_EXT_THEAD
select ARCH_HAVE_ADDRENV
select ARCH_NEED_ADDRENV_MAPPING
select ARCH_HAVE_S_MODE
Expand Down

0 comments on commit c398049

Please sign in to comment.