[PATCH v3 33/76] arc: Drop CONFIG_MMU
Simon Glass
sjg at chromium.org
Wed Feb 1 21:19:44 CET 2023
This option is set in the Makefile but has no effect in the assembly
code, i.e. the #ifdef branch is never used. Drop it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
arch/arc/config.mk | 4 ----
arch/arc/lib/ints_low.S | 5 -----
2 files changed, 9 deletions(-)
diff --git a/arch/arc/config.mk b/arch/arc/config.mk
index b713fa3054c..b110f7deaf6 100644
--- a/arch/arc/config.mk
+++ b/arch/arc/config.mk
@@ -12,10 +12,6 @@ KBUILD_LDFLAGS += -EB
PLATFORM_CPPFLAGS += -mbig-endian
endif
-ifdef CONFIG_ARC_MMU_VER
-CONFIG_MMU = 1
-endif
-
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
diff --git a/arch/arc/lib/ints_low.S b/arch/arc/lib/ints_low.S
index 38c45c60a95..fb283f239ea 100644
--- a/arch/arc/lib/ints_low.S
+++ b/arch/arc/lib/ints_low.S
@@ -76,13 +76,8 @@
.endm
.macro SAVE_EXCEPTION_SOURCE
-#ifdef CONFIG_MMU
- /* If MMU exists exception faulting address is loaded in EFA reg */
- lr %r0, [%efa]
-#else
/* Otherwise in ERET (exception return) reg */
lr %r0, [%eret]
-#endif
.endm
ENTRY(memory_error)
--
2.39.1.456.gfc5497dd1b-goog
More information about the U-Boot
mailing list