From patchwork Mon Jan 23 21:59:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1730692 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=UrV5w5cv; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P147C4c4Qz23gV for ; Tue, 24 Jan 2023 09:11:03 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A656856D5; Mon, 23 Jan 2023 23:08:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="UrV5w5cv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8302B85569; Mon, 23 Jan 2023 23:04:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3A5D385569 for ; Mon, 23 Jan 2023 23:03:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x131.google.com with SMTP id b15so4541802ils.11 for ; Mon, 23 Jan 2023 14:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jZBXqJsJaanj1h2VcA6cJnytTqXulWnaRKkNFLqTMl8=; b=UrV5w5cv886zYFFa8YA4XaZsjBfmDXFyIaTfxuvWA9NebgQY4UTo2bAKUzyzT/cEm0 5TGJrzv3TUxsUd7tfL3WDfDLXmEC9qJ4QvA5cyfGFx6kklFXwCLLCq0/U9ny8/M15G+E kuzJHlKUnS5P449/mXzjoRFVKATaTzc6m+d94= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jZBXqJsJaanj1h2VcA6cJnytTqXulWnaRKkNFLqTMl8=; b=HBTYXqA9kpmN4WhSMQuRFmV3b5izq52fAhxQdyK+rLBCmr/KyeN7yf2ylMxx2tfwLh jcYHcQDGWt8r29xCS9CGLr2BxsLTNOfmoGxC8P7M0QeBVZmpw+6jHyNaeXYIDKEg0SFe ISZzfQoq7Ns1UyQbyk4h8dGbJi1te0QBIb4CI5UNC3xCitlg45Q0vEbshWbTbgbI8SvC cUvAgsvB0QwrSl6zz2XzJU+C2G2OocgxYp46aUr/cv13nuez79E5GweQkSR8JQbTwAjR Xk+t8k9DFH3+e6344EspVXzMcKXiPcXBeS/viezpMNSaERn146koNaBoMsm3hFo41x7O /tDw== X-Gm-Message-State: AFqh2kqwYDtnN1nxn13GlKjGim9NimMPygKtS3+5wto1ljQKs0fdPEmD WoRnzLsR6bGMZq8D9Frw5oLK3BZOybWuVUnX X-Google-Smtp-Source: AMrXdXtYZ3ua+5T5AMJyNQFUorLevAWD5VrZpI7lf4hX9Fq63X3xJR58vdFbrdO6N6ntr+BWAgalIQ== X-Received: by 2002:a92:d9d1:0:b0:302:364f:68f4 with SMTP id n17-20020a92d9d1000000b00302364f68f4mr18575994ilq.17.1674511381878; Mon, 23 Jan 2023 14:03:01 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:b357:a759:c191:fe47]) by smtp.gmail.com with ESMTPSA id j8-20020a02a688000000b003a0e665ad11sm110915jam.13.2023.01.23.14.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 14:03:01 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass , Alexey Brodkin , Eugeniy Paltsev , uboot-snps-arc@synopsys.com Subject: [PATCH 39/88] arc: Drop CONFIG_MMU Date: Mon, 23 Jan 2023 14:59:42 -0700 Message-Id: <20230123220031.3540724-40-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230123220031.3540724-1-sjg@chromium.org> References: <20230123220031.3540724-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 --- 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)