From patchwork Fri Dec 16 22:05:38 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: 634469 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1082548pvb; Fri, 16 Dec 2022 14:17:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbFwZ7KVcg1GSs2A4eZj2b1ewDvFUvFxg1kuQUp2lp7ov3eOTmWEaczexUE8ZeKUdbXG0m X-Received: by 2002:ac8:5ed1:0:b0:3a8:15d2:6e8b with SMTP id s17-20020ac85ed1000000b003a815d26e8bmr1581078qtx.33.1671229024852; Fri, 16 Dec 2022 14:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229024; cv=none; d=google.com; s=arc-20160816; b=ULlbA36IAwPZqWE7oLmN2zV9XMGzXtr1OcCvGTOH8c4XqoVDzm695vo9mk6jx/Vehk tq+KVsJxYDYLFaobuf98QKHbllx2sySnYYHNXvsem3+UHj1bF3Y2INU8fI2omgWWlL/7 yFLj0HoufDfaSuajAxBGFVrqMWZS6orSWwnuavylkvh1j2acL5sn9VCW68KiHJ5TG8as bouF0XU1LlCfadT/WrBpdjK7iRd10wl7BfKUICgn0iN3VuGKK2ZwHcd/ihjYsiqI8hRE e/AqqIYVSvj9TA5RbWMNajfvdGYax8eXTmwWPV22LhX65TAbbsYjFt0e/6iImTQlZ2aB ukYg== 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=R//5IGbZV1id+FdV0GPy1tZ97aQjvuXnH9TTCSs324MF1XShN/AO4ne6/1/ksj9A4J GcrOjOlYu/nQS9rL/jcHPtOcTrligEcWmE7jskGFDdUadu2XScx+J1h6Kbk9mscr8XQL hk9V1QZ6GDTjSyQ6XlDD/qtiNKElold1JWmRPYxJxbffim7eeLlVa6ZhMcuZgV0TVNta W2PpvKoVBKUJKhP+XSPb3+4zPI1E0UrzFbmhZydofaKsZFnkAYFickVRMI18sjP4ERIQ FT6hrS4C95FepMlKI9zCGk7EqhWV8Xx3z/PlOu9R/ke4i4GDsfI4C8YyVz3psWmmTSAE H9DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q3sgZ7rQ; 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 q52-20020a05620a2a7400b006ff100d1af9si1564845qkp.163.2022.12.16.14.17.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:17:04 -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=Q3sgZ7rQ; 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 1p6Iqw-0000o1-Cs; Fri, 16 Dec 2022 17:06:50 -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 1p6Iqu-0000k3-MR for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:48 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Iqr-0005q9-Q6 for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:48 -0500 Received: by mail-ej1-x635.google.com with SMTP id fc4so9189337ejc.12 for ; Fri, 16 Dec 2022 14:06:44 -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=Q3sgZ7rQrMzBb/RIxySP1zj9kYQfTbiDe1cSn4f2jtocd/6ABwK3M5MPvKUNQGH+C6 62sOG5Ulab0flFBoyAkvalhOK0IYAaPKYQmhcW304n6mb1W+7BDaLN2UtWcwrtm0Rs31 mR4fO+lA9CTVRVyKOClXEJPCmUzsbr6g/n11ALE0ziscTabzOq9EZnE84dKrKlcHssNU +qW2481DlkJFvbhMosTtiqjzwOhTXpZM4q3VegC6/rnqDhnfXbTpWAm1qjao90iaz+z3 Agh2fcBafOc6kYbvwhZ18Dvxiv/fCkLy4V+WmT4UThT6R7ekeSQFIykp1fQnM17Q3DS8 0m7w== 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=KbHaxCX21o1ZzKVJMQwvbU4nS+BieXe/A5XBPKNweca7qxKyEnjmwY8MzUcDueMrWq vIAqYYqbVQTYFzL/5GwmeNxtvVHKq4HuN611rHqpK9ldufdtxQMZfx8UEeapwpjzwSM2 NwvIKmhi4JU9UHK0kqBNoSisDQ0FbjuXjibEuvhvnmuDh66uSOjWBjX2x7wCY4kcY8ma rmaS2fOxxDd6H926+eozKUdkXqACTG22vFforKhtClYtfdGhKlkvhTt2VwYx1O3O9f+W oSQhUp8RYTJxlpVFhD0wn29DmRnVmfi2UH5K8DtfSJBaQLNHA0czzviD19k95smdPj6u loPg== X-Gm-Message-State: ANoB5pl27uU8AXUx9Cj3BXQ8rM/vS1LyOXOxxFKYBMND60bBDKVj+ZrE aWQ6xP1ylRNL8QZbvgrhFO46GtlX2LlJelxYQjw= X-Received: by 2002:a17:906:2345:b0:7ad:9455:d57d with SMTP id m5-20020a170906234500b007ad9455d57dmr28429721eja.74.1671228403801; Fri, 16 Dec 2022 14:06:43 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id f3-20020a17090631c300b007c0f2d051f4sm1265763ejf.203.2022.12.16.14.06.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:43 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , David Gibson , Xiaojuan Yang , Mark Cave-Ayland , Bin Meng , Richard Henderson , Artyom Tarasenko , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Song Gao , Alistair Francis , qemu-ppc@nongnu.org, Laurent Vivier , Palmer Dabbelt , Taylor Simpson , Greg Kurz , qemu-riscv@nongnu.org, Max Filippov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 09/10] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard Date: Fri, 16 Dec 2022 23:05:38 +0100 Message-Id: <20221216220539.7065-10-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221216220539.7065-1-philmd@linaro.org> References: <20221216220539.7065-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=philmd@linaro.org; helo=mail-ej1-x635.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 */