From: Simon Glass <sjg@chromium.org>
Date: Wed, 1 Feb 2023 20:19:44 +0000 (-0700)
Subject: arc: Drop CONFIG_MMU
X-Git-Tag: v2025.01-rc5-pxa1908~1117^2~39
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=8697ea97bd16f3c42f650ce87ad68036f0347303;p=u-boot.git

arc: Drop CONFIG_MMU

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@chromium.org>
---

diff --git a/arch/arc/config.mk b/arch/arc/config.mk
index b713fa3054..b110f7deaf 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 38c45c60a9..fb283f239e 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)