Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EDDFC05027 for ; Wed, 1 Feb 2023 20:27:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9241085D2E; Wed, 1 Feb 2023 21:23:58 +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="iRUoxt/e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6FA9B85D3D; Wed, 1 Feb 2023 21:22:39 +0100 (CET) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 AF8A885D55 for ; Wed, 1 Feb 2023 21:22:27 +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-io1-xd2e.google.com with SMTP id o1so3572329ioo.10 for ; Wed, 01 Feb 2023 12:22:27 -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=7BbVh7H7wsFxQHZzHELoARNwsSFDLFQb84ttLPcI1Cc=; b=iRUoxt/eSuTE25LH66T4kXReDKTbn0zDKay6o5HpEF9eoao+M/eVHRd+vwEIbsfLe/ hQfsLGj0k2ZPqme0ueMbZgHu+hZf92wsxHW6YEbdv578s55JwGp8zEtzVvEyj/XYn2Tu vE9lwz49NO4T0o5YJt6iFgDKzdujxWp8lOIwU= 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=7BbVh7H7wsFxQHZzHELoARNwsSFDLFQb84ttLPcI1Cc=; b=74G/aaqOJAaklXebcx8Klut/eo1tAUB/lqGwcJ0bkHLFCt9Fj0kMrGZJhMt0m8la5w 3rawIN4KZmv1bmKycg66WhCIFj4NuU/xbtzzT2XfyrNxO4ZD1zkplyWQREmIwC0bW3mY 5HretqG23K1tKa8SyM+opxpKZTDP+cjsa4kVB1kjTghC0PrybQkXu81Mp4ltg2SwWToR fqkgKyAvOFvQ1WcoeMornQk8TR3+ZbPkNxYWKI16NuPk+BnkmDcgIarzQgeqErRx9j+n D4W0ds2CxOJGiUp7QDQ0BMtLwMiZ68TWW0gV+84xkebth3xDOnaExZC1dvOr8sauOlFi +F7A== X-Gm-Message-State: AO0yUKVkkVwpzX7dcHU0i45J8Ew1lXdtmRtQRSYS5UHEmQ3QxNU+iqdq mAsdKGLjDczI1+OPovB/S6upswRBoPVnEuaY X-Google-Smtp-Source: AK7set/hWrG/al8wjAHQx2Z4rNs6Rob/FlfS9pe7ReFWy17t0MGQFLA0l2SpYxTdNUlayo4N3LzcTA== X-Received: by 2002:a05:6602:3c8:b0:71b:5cd7:fcd9 with SMTP id g8-20020a05660203c800b0071b5cd7fcd9mr3074477iov.20.1675282909162; Wed, 01 Feb 2023 12:21:49 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:1fda:cca0:9a42:148c]) by smtp.gmail.com with ESMTPSA id i1-20020a6bf401000000b00704608527d1sm6166498iog.37.2023.02.01.12.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 12:21:48 -0800 (PST) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass , Alexey Brodkin Subject: [PATCH v3 33/76] arc: Drop CONFIG_MMU Date: Wed, 1 Feb 2023 13:19:44 -0700 Message-Id: <20230201202027.1943031-34-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230201202027.1943031-1-sjg@chromium.org> References: <20230201202027.1943031-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- (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