From patchwork Sat Dec 17 17:29:06 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: 634863 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1466663pvb; Sat, 17 Dec 2022 09:34:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Ajji7lAioxhpu+RrNMB0qVlksCFQCeIUDydkC++jwLsH6ETy9sE+PGSKco4QugBTayVEb X-Received: by 2002:a05:622a:1b14:b0:3a7:e9dc:699d with SMTP id bb20-20020a05622a1b1400b003a7e9dc699dmr51793799qtb.20.1671298489294; Sat, 17 Dec 2022 09:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671298489; cv=none; d=google.com; s=arc-20160816; b=g/G2F2XH3m3fNo3wQkYjzDb43Z0HRRiRSWp/PStgiRHpxGs3Bfu8f3X3m0dE78Kghg RlhWWUz7WpwYA3c626HSGBkmzZem3SQVdJmX4M49rbMaytbglRRsU2QrfLqIAmEkeYzr fwqfOxa5VuV7gPiEcXe8AVGmvJwhZqzCzmD8CJh39ibiX6JPmdXz2uUHDVr0HGxAp5Lc CrGnASZiTxDgPtozjXITwIZ1RtpD65iY+v8kz77phwFsISWl8YgkdGee2dwQgvTne7XT aXz58/BkFmcEuYdIedcLrifOkox81aUbJ2f7h9pZv2ADogIiImBNNQK6MFY6UDvbsBC+ 2xvw== 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=wk4kZcMMisFWgQ9gHzikpbBAxoBtm1ZzojbUpYahP3s=; b=DEb5hCQ+zQCFRazp3cEjbKXvVATUHvQowIUSpa5GAwJvIFamQjn8sE7u7gcAOzg/g4 Zio3adXYlHev67I1Gkj9CLlyyayZmTxphb8lstQdIpo4JQgVaPjytmTg4J/YKUKyQYa0 5BNqVsnWv5iO+FpoNYTA4XUS6O3w/QA7PlwfJJLk/+9gYrhYLXHiuk/WSPSxoLAEq8Kj scI+UKYRMaVLucniQO3aYQayqWre8sHceWL8Q8QmCSoE1jVhI9XIrOLEkY78arMNbI7w 2/8LWw2VkfdrypI24E0oDkL5jXrt3PAyf7G5td718yV0DCu0o4Bif/Y4/2ZkCVduT1mx leFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FImUCwLo; 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 d69-20020ae9ef48000000b006ff0245b21esi2315127qkg.263.2022.12.17.09.34.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Dec 2022 09:34:49 -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=FImUCwLo; 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 1p6b1m-0003On-TR; Sat, 17 Dec 2022 12:31:14 -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 1p6b18-00030B-Oj for qemu-devel@nongnu.org; Sat, 17 Dec 2022 12:30:50 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6b17-0002e0-BA for qemu-devel@nongnu.org; Sat, 17 Dec 2022 12:30:34 -0500 Received: by mail-ed1-x530.google.com with SMTP id v8so7702759edi.3 for ; Sat, 17 Dec 2022 09:30:32 -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=wk4kZcMMisFWgQ9gHzikpbBAxoBtm1ZzojbUpYahP3s=; b=FImUCwLooRkHMftIyWdZtUzg3r8gzuJWqATacIo/a2IHDL0VlPpzbNKh0Kqs9s//2A fiP77CgQeRNYTkHkiuW3xwUS+sUpvFx+7mh85VdTesGbMR4QkiZFv46f8Ks5zk4Q5F4d QPybhshBSKIJ+vFo3Nj3N1cRIfpicTXB0/4OTp+RomhSGV6mF2ixV80MOvF+IKEN/G+6 4zGKPlBttrdio1Bc1yZoKEOoGwEuLXQ8updTxegKSJbLXP9tD4ULjvDEB1DwTysTttU2 X5mJmPFqdxLwZE/XR0BdiSNAH6iH/Nk6gk/XXyCnRlUnFOnuffr0OhX8KGJpdb/sp1un wgGA== 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=wk4kZcMMisFWgQ9gHzikpbBAxoBtm1ZzojbUpYahP3s=; b=2GvGt3wSxfl9d/Dy6peZBquUxEF/KEeyEeQP3mZSJbD5Hs3ghNjKcLsvpzrf32LMru DpVdI9/5KHGs0Du3MftuICJKv+Y381lyLDs/P5v4eNysIODGarNb0TZF5RnTvuciH0Wg qPw+dVe1RRSFRZE9NNMXw37TdVuJkB5XvjduB89uqodylkV2ZEAypD//yOT0rSRFf1XU FRK1huApdhh0vRd+XdN/ly9xypcWR/02OT1xpd1YBDC0ux2QENkQqqcRIjyjjevjOfSO 3BXaoMOhU5QP1NE2TNnzJ57x4THX6yvrZnFY7R0aDtWJ5TZysIGP0e/CTZPm7IZN2ZKq ZneQ== X-Gm-Message-State: ANoB5plI435GAmzMe+th1nvMZDd0UnyOdlqBpHCpIZLlDNJ470dDp6TC BJ6U4VdwgwN0FG2MmHPtC4gPDj0dMKzRl2htu3M= X-Received: by 2002:a05:6402:548c:b0:461:6f87:20be with SMTP id fg12-20020a056402548c00b004616f8720bemr27829816edb.41.1671298232467; Sat, 17 Dec 2022 09:30:32 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id z7-20020aa7d407000000b0046b531fcf9fsm2196443edq.59.2022.12.17.09.30.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 17 Dec 2022 09:30:31 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Max Filippov , Richard Henderson , Bin Meng , kvm@vger.kernel.org, qemu-ppc@nongnu.org, Greg Kurz , Daniel Henrique Barboza , Bernhard Beschow , qemu-riscv@nongnu.org, Song Gao , Artyom Tarasenko , Paolo Bonzini , Palmer Dabbelt , Mark Cave-Ayland , Laurent Vivier , Alistair Francis , =?utf-8?q?C=C3=A9dric_Le_Goate?= =?utf-8?q?r?= , David Gibson , Xiaojuan Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 8/9] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard Date: Sat, 17 Dec 2022 18:29:06 +0100 Message-Id: <20221217172907.8364-9-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221217172907.8364-1-philmd@linaro.org> References: <20221217172907.8364-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=philmd@linaro.org; helo=mail-ed1-x530.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=unavailable 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. Reviewed-by: Richard Henderson 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 */