You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/07 05:33:38 UTC
[incubator-nuttx] 01/02: arch:xtensa: add XTENSA_CACHE config
support
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
commit d6fe0f18f5163047f4f6601ce30fe992921ce66e
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Mon Sep 6 11:18:47 2021 +0800
arch:xtensa: add XTENSA_CACHE config support
Add support for XTENSA_HAVE_ICACHE & XTENSA_HAVE_DACHE
---
arch/xtensa/Kconfig | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 0720d22..1521009 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -70,6 +70,30 @@ config ARCH_CHIP_XTENSA_CUSTOM
endchoice # XTENSA chip selection
+config XTENSA_HAVE_ICACHE
+ bool
+ default n
+
+config XTENSA_HAVE_DCACHE
+ bool
+ default n
+
+config XTENSA_ICACHE
+ bool "Use I-Cache"
+ default n
+ depends on XTENSA_HAVE_ICACHE
+ select ARCH_ICACHE
+ ---help---
+ Enable Xtensa I-Cache
+
+config XTENSA_DCACHE
+ bool "Use D-Cache"
+ default n
+ depends on XTENSA_HAVE_DCACHE
+ select ARCH_DCACHE
+ ---help---
+ Enable Xtensa D-Cache
+
config ARCH_FAMILY_LX6
bool
default n