From patchwork Fri Jun 2 22:46:27 2023 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: 688230 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1102602wru; Fri, 2 Jun 2023 15:47:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6D/4/qCi9JneKK04CcndzuhoxSG/RZwu7leFNSmg2ibV34BvY+4HPlF2n0tiuPE2moJ9TQ X-Received: by 2002:a05:622a:647:b0:3f6:98c5:43b2 with SMTP id a7-20020a05622a064700b003f698c543b2mr16095819qtb.27.1685746053632; Fri, 02 Jun 2023 15:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685746053; cv=none; d=google.com; s=arc-20160816; b=kEtAg/OLQk3VIl94UirN2ikQ7S2zS8oDIE9kBacZ1S2yA2qN+mpjkRBIzi909tI396 wMPRszjTNuexNxbZPtFePDsLMi97daIJB/0mwWS9XcbWOctNO8IYXJyy4Ja6eLXDR6ic EPczEGoWlwaLhlACdQ6DrcP4DedgqhJC86fst1KKrGGxnWCx1ueWIhcJ/Ghi/BKeIq6R 6l4YPji9wZx4nx+ep/rwV71+ffHhvv4zwMz9NexSzo0q4TAh8JkzbR2UA9hMlzJ4gUY7 QjjIgZslS1J2csmk8kKXFrhL43Ebq2IvGl2zc4j3PLmGAcBkRFPwYg9fGjvQTkNdbfF+ 78YA== 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=bVMIqqWV5g+QPtoI6znu8aw+zNebYRSC5VAPbRhIAk4=; b=qXoEp3yIgdWbj9x6K4Spjc+qCQJqGzpD0ihlNg3FNoq534XwSwneG9g9ig9N7fWoNn ZfEPDBDltTQ6B85LJXzhuQuQOmxD9GGS2m34xd2BRpGGftfbiiOKXsgv6JJ3PgLqyfd5 EYA3BCxAObsHE0eru/tmJHqlBvQnPAW7zBgNQ+goCIlEYB/8KF4wRLxCdYexYrxr1nRh iiBIoktuXMFnxptSIXPXKPRKRrbFpgA4r+oIMWVllxrAbcl+uvjcwckm4JL3IeO4/9dx ybgVZZHkJRyeXalXTHnnnjQmhDAMgDcO3PrznlbN3pQdAKj0KmT/1eQ7R71Wpu7jcdU3 Em3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RAAKIvFO; 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 m11-20020a05622a054b00b003f6bece648dsi1501276qtx.659.2023.06.02.15.47.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Jun 2023 15:47:33 -0700 (PDT) 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=RAAKIvFO; 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 1q5DXe-0005zC-7n; Fri, 02 Jun 2023 18:46:42 -0400 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 1q5DXc-0005rg-LZ for qemu-devel@nongnu.org; Fri, 02 Jun 2023 18:46:40 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5DXa-00067s-Pr for qemu-devel@nongnu.org; Fri, 02 Jun 2023 18:46:40 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f6077660c6so24407605e9.0 for ; Fri, 02 Jun 2023 15:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685745996; x=1688337996; 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=bVMIqqWV5g+QPtoI6znu8aw+zNebYRSC5VAPbRhIAk4=; b=RAAKIvFOKZ4BOsaT5LTgvcBeqp6hGvTEFbek+gSjeDi2d5N5OWU+Kp89JLZfEhLR4j /4n54KJJihRRNi2+ggEzR3+TsUk1DiFYFXdFupO7Xgxjlh1Oajm4QZ9Mt3bycxmPUHW4 hBLiNpbvZA96Ll7wy3aqO6U5T8JWAx4l2I5Qx7TOxjsVIhzDrIAuAsvjHhRXdCtqOE39 bFS0zz6M9cvorr05rUYjGnUIT6Om3NaNY0Ykon4lQYS6illBsVC0W+KTdsPwzwqavjNk NsAsDyJFp5n5lG16yA88FFrf4BzgQyo59BVqrkAhj71YNHRctfpBz0HJaxTPTDwpRjrr h9gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685745996; x=1688337996; 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=bVMIqqWV5g+QPtoI6znu8aw+zNebYRSC5VAPbRhIAk4=; b=Ueo7Uc+0FHNanB6U8otkLnU5Ju9xTeayi2dm9krQ44zofAxrLEFbwX+4UQzTpq4nWl LWhHI6dne9KROJ6MmmaFIbYeKQSIyuF1ToBmGOjMBYZwl04yP1ZVMyMC2tndUWi+gAp7 59XfhSZzUrKrJbmyE/qgysfZxSL2/wTTKFBOVBrf8gkivomRvUQeYkDyXYWgsA6lo7ND b424TCIlQkDvoiVfD8VdBaK90K1+zTssVQXGHvYaQGjpMl3KT8jOlygCeFev9ItH+oUt VVnxF5vehORYjYJyAqmnKLHZfWAlVaKAXZ158VRuLTA8FeG6r1/pqBpHBRLPuaqfQudy wrDw== X-Gm-Message-State: AC+VfDz63EfTspbBJetpkzrNlGWT4U6yHenkEY9hbvGbNUmG0UXIjVV3 nvwf2o2Ywnp5hAdquo/dXT6lWZ5Dz9X38ZP6H1c= X-Received: by 2002:adf:cc91:0:b0:30a:e70d:9e73 with SMTP id p17-20020adfcc91000000b0030ae70d9e73mr1013224wrj.33.1685745996549; Fri, 02 Jun 2023 15:46:36 -0700 (PDT) Received: from localhost.localdomain ([176.187.218.254]) by smtp.gmail.com with ESMTPSA id z16-20020a7bc7d0000000b003f605814850sm6780530wmk.37.2023.06.02.15.46.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 02 Jun 2023 15:46:36 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/2] target/i386/helper: Remove do_cpu_sipi() stub for user-mode emulation Date: Sat, 3 Jun 2023 00:46:27 +0200 Message-Id: <20230602224628.59546-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230602224628.59546-1-philmd@linaro.org> References: <20230602224628.59546-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Since commit 604664726f ("target/i386: Restrict cpu_exec_interrupt() handler to sysemu"), do_cpu_sipi() isn't called anymore on user emulation. Remove the now pointless stub. Signed-off-by: Philippe Mathieu-Daudé --- target/i386/cpu.h | 3 ++- target/i386/helper.c | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 7201a71de8..cd047e0410 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -2285,7 +2285,6 @@ static inline void cpu_get_tb_cpu_state(CPUX86State *env, target_ulong *pc, } void do_cpu_init(X86CPU *cpu); -void do_cpu_sipi(X86CPU *cpu); #define MCE_INJECT_BROADCAST 1 #define MCE_INJECT_UNCOND_AO 2 @@ -2419,6 +2418,8 @@ void x86_cpu_set_default_version(X86CPUVersion version); #ifndef CONFIG_USER_ONLY +void do_cpu_sipi(X86CPU *cpu); + #define APIC_DEFAULT_ADDRESS 0xfee00000 #define APIC_SPACE_SIZE 0x100000 diff --git a/target/i386/helper.c b/target/i386/helper.c index 36bf2107e7..792c8eb45e 100644 --- a/target/i386/helper.c +++ b/target/i386/helper.c @@ -611,9 +611,6 @@ void do_cpu_sipi(X86CPU *cpu) void do_cpu_init(X86CPU *cpu) { } -void do_cpu_sipi(X86CPU *cpu) -{ -} #endif #ifndef CONFIG_USER_ONLY