From patchwork Thu Dec 8 15:35:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 631886 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp296257pvb; Thu, 8 Dec 2022 07:38:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6JSEGZncRAjnIJU/311E2JQe28dxpgSgYPmJw5yVVTXcpXqEHbBB3xIQUeEK5Y8HN2i3GD X-Received: by 2002:ac8:1085:0:b0:3a5:4b28:f4b0 with SMTP id a5-20020ac81085000000b003a54b28f4b0mr3022470qtj.68.1670513934362; Thu, 08 Dec 2022 07:38:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670513934; cv=none; d=google.com; s=arc-20160816; b=A7lMEVAvPNa/2TlAfKvEVSBZ82IKrworcNjroyPfycrx+p/3BPI6TNMD39bTFoRPxt 2WfybMQZzUDfFFbwPO6h/V8WccRIeAePIgA+2BHgrjp/MzxBZODBYz2V8xt7aeulLP7t LNnDbaf8la1SySADP2uU7w4gvY2AkALMqJI7WTj8lDt0EKzgk/3vfrzhdcsiLcu59hnR OCvYjS9q78l5LpjFp3LwBuXsz5FxDdpXlRwnFauQVRpsCwhLzYGnCmYXXDnqRB9CRQG/ Nhurr8D/zoqSzSbnTGTZz+IR4ZyxhimNsATY9vCGSSLsRN52Un/AyOiCdFfp22w6E2kZ MWtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZuF4jChtlBjy8dKWVe0vYW0pjpjwZ/qKs1pftyTULhE=; b=f6lcFinHfka97M1/fY+dKVbHPmwxq7uske63wMHQvTs2S8hwAqX7vIWA1ANUpVGUQD 1Mb4e7m9OYtoqBAt3k1Vq+zV6Mn9LJLESOrIcV/qhiP8tZCg5dEiXLFE10lG8BvbSp5T VmSDp05cAcwL8U5tlm9TK1jMd5gIHd+oN5ISjZDNURAdJpnId2ZeQamF/TkNEFgHY002 wKdVXlfALqvceSeQJfhgmFL038Pd3X3vaNTgZ+UXg6PgbCZ/nzAKocxc9zKJKdH4n6zQ y04Olf8M+LU2SzLnBhtTDUOAiPk722uzl1wrxVkrhdd0OFOUjtNhxUlKYBndIrUXP1aq uEJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dO1rVy8a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v16-20020a05622a189000b003a5591ca0b1si12683792qtc.521.2022.12.08.07.38.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Dec 2022 07:38:54 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dO1rVy8a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3IwK-0003SN-F6; Thu, 08 Dec 2022 10:36:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3IwI-0003Rc-OB for qemu-devel@nongnu.org; Thu, 08 Dec 2022 10:35:58 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3IwH-0006Gp-8y for qemu-devel@nongnu.org; Thu, 08 Dec 2022 10:35:58 -0500 Received: by mail-wm1-x329.google.com with SMTP id v7so1355680wmn.0 for ; Thu, 08 Dec 2022 07:35:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.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=ZuF4jChtlBjy8dKWVe0vYW0pjpjwZ/qKs1pftyTULhE=; b=dO1rVy8a1UmJNv0075+sKdleWJ0ZBR1e/UgGlysFXEGorO8mWuMdwXUEfXsAxNBZ7N qNsS71jo9driQdFOJfvuDDoM4z1PHZ8Oy1Jaa/rj+eCYaVzx71FwSeK1ISFeRL7U5KAA 89Z988n/DMgUtsS5QrNmwOleyUXYykdhU6LzJ7/yXucBtt0FgLSG8R5FXi4EunqQTZRv FR/1/EYdxhbIRQU3fsC9yqne/3YvCIye5fAxc7srypsYFoDgrfrnuuB4xMGGf0CPwB/S hrw7s4KyxuvIWWGMmRzNxdcZMb+JQ8mMq/6Sy1gp68NQEExE5BHewvPSaX5MrozUllb0 Lb3Q== 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=ZuF4jChtlBjy8dKWVe0vYW0pjpjwZ/qKs1pftyTULhE=; b=7/y8gHBkOTYTmukj2GG1m9XX8mGvPwNWGJIgAOPsP/KXZ0MzCX7fmUt91GvyY0YrID R3JoUtaoeHbvuz6I60yCZGlXbZ5D9dHB/kDmtkZENDctjzZNy8BGxMeDMNQtDMCVAaL7 8KAeDT3lEm0XK3t1Wgg+uVxDSpDvIPyfc08G63FNfA619Evi2sZbQ80wZoSH6aAIOJDd nRB+1gJlz/Kx2ehxT18fuy61M0YIcX34Ww/creI/6Q1dW5tNn4WmchFdu6+imeBwimbP NBSG6LX4SSDDCzR3EXRDPxcfxWOAwdWthUuMTJV4ODxMw97wlEDy67ZnWNdIVihQNU3B tMeQ== X-Gm-Message-State: ANoB5pl+uahEskQ7xkMzWBHLerk7SFKyb6+j9WgQJpdZlX/C/idZTzOj u3A9B96SP4BrHbuxu8dQcXoLVipD2g6f6YpW2LI= X-Received: by 2002:a1c:7c15:0:b0:3cf:7197:e67c with SMTP id x21-20020a1c7c15000000b003cf7197e67cmr2335687wmc.25.1670513756301; Thu, 08 Dec 2022 07:35:56 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id 16-20020a05600c021000b003d1e4f3ac8esm5089704wmi.33.2022.12.08.07.35.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 08 Dec 2022 07:35:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Greg Kurz , Paolo Bonzini , David Gibson , kvm@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mark Cave-Ayland , Richard Henderson , "Edgar E. Iglesias" , Stafford Horne , Anton Johansson , =?utf-8?q?C=C3=A9dric_Le_Goater?= , qemu-ppc@nongnu.org, Eduardo Habkost , Chris Wulff , Yanan Wang , Fabiano Rosas , =?utf-8?q?Alex_Benn=C3=A9e?= , Marek Vasut , Max Filippov , Yoshinori Sato , Laurent Vivier , Daniel Henrique Barboza , Marcel Apfelbaum , Artyom Tarasenko Subject: [PATCH-for-8.0 v2 4/4] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard Date: Thu, 8 Dec 2022 16:35:28 +0100 Message-Id: <20221208153528.27238-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221208153528.27238-1-philmd@linaro.org> References: <20221208153528.27238-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Commit caac44a52a ("target/sparc: Make sparc_cpu_tlb_fill sysemu only") restricted mmu_helper.c to system emulation. Checking whether CONFIG_USER_ONLY is defined is now pointless. Signed-off-by: Philippe Mathieu-Daudé --- target/sparc/mmu_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/sparc/mmu_helper.c b/target/sparc/mmu_helper.c index 919448a494..a7e51e4b7d 100644 --- a/target/sparc/mmu_helper.c +++ b/target/sparc/mmu_helper.c @@ -924,7 +924,6 @@ hwaddr sparc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) return phys_addr; } -#ifndef CONFIG_USER_ONLY G_NORETURN void sparc_cpu_do_unaligned_access(CPUState *cs, vaddr addr, MMUAccessType access_type, int mmu_idx, @@ -942,4 +941,3 @@ G_NORETURN void sparc_cpu_do_unaligned_access(CPUState *cs, vaddr addr, cpu_raise_exception_ra(env, TT_UNALIGNED, retaddr); } -#endif /* !CONFIG_USER_ONLY */