From patchwork Tue Jun 13 09:38:12 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: 691976 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp367325wru; Tue, 13 Jun 2023 04:43:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ462tWwal8fxgNp+hDOGW+K80gQrxhnf+pud/rvBmQFCKkWRQ6EKr5ZugKQhndaD8hSxvBr X-Received: by 2002:a05:620a:17a1:b0:75b:23a1:412 with SMTP id ay33-20020a05620a17a100b0075b23a10412mr12932496qkb.40.1686656588325; Tue, 13 Jun 2023 04:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686656588; cv=none; d=google.com; s=arc-20160816; b=z9qSaqFEGJM8SBxKpS0x5xPiigONHYYBefEl0Sdn88yUvCBQeIQiIoyKPg00qkbaVt iqkHifLFzUzGVpoVZfDRT37/vVleItKMsfRUSMHu0xxSIM5z3Yko51UHonODL64xLnJO pO+XfkjNJg6M5wBuQxMkpPDcq1LP/Fa8Ho3N9MhAY72caRyGf0K3Xq93ZQXIIZNbVh23 pn95S78mTiRl3pAIQ1ga9J+RmrZwFdZA5wSyjR9eoKfEVXAhkPcF2lLLHe63NqKt1zJ1 6ne1xKCzkVkt2fo8GxRwML0fqhl671SM5hGcmqnWlWguyu1s3pxMtbjtrej8Ks907WrQ kD4w== 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=myeX5Dw6+waNCZWCgIspsiK+vpR5MfiXN6PuO0NeKtA=; b=RXlt/xSUHzaTQ2Zemor2Rv5nccD4TtoRus5UpY6//BVKLcuCj/xZugSx8kHI+xXnZu /B1AtU57xu4PlRRcixMoj3bFvAuYWM7M+K7uAF3wSDCc+pSZC7yoAq91llULSW0A1bPV Sp6UHn6offXNAHXQrYQIOYPPpJgViDWKTxIsXNegJL6jYYzwLImfzsUU7/d9bKKvZkZE zrRZ5yUNfvYbyoaD8Jx/fxTnBBwJ4zUtGeEXBrwXBGAQ/ovIY9lqygIMPo3togmtiCie iaszApk8r5lziTbKQddfctqa6yWNrqgx50xYGHovhbpCqaNirwIOpq5q/pbfJGNZSOJb fQRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aayT79RN; 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 i17-20020ae9ee11000000b0075afaac62e8si7385171qkg.131.2023.06.13.04.43.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Jun 2023 04:43:08 -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=aayT79RN; 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 1q90UQ-0005Ud-0A; Tue, 13 Jun 2023 05:39:02 -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 1q90UO-0005Tq-Um for qemu-devel@nongnu.org; Tue, 13 Jun 2023 05:39:00 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q90UN-0005Zh-3e for qemu-devel@nongnu.org; Tue, 13 Jun 2023 05:39:00 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-51879362bbfso503033a12.0 for ; Tue, 13 Jun 2023 02:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686649136; x=1689241136; 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=myeX5Dw6+waNCZWCgIspsiK+vpR5MfiXN6PuO0NeKtA=; b=aayT79RNVZJvyM4TSEwqccDtz37EF6lAxwjzp1q2y3xw1LoNPZcm/ZjxNYiqz83rlR v0sKG07t4QVa1JQEbIdQtNNWUVPloFdxfjjNa9NlrvSqhgh0xWFGOy0ejiQvx0LjkZ9z XagIMvddP1J6VeYnhNq4j0PTyJE7Nn9UFFyy1c2cqpRRrWRotb6FwMg3wN+XSbN/2C0J 0y8R7FyQWACGJPfDDX0UlEYXU70HbWaUYyTtXmeitCHHJkm/1qzn/PUU/QCH70Sv7oZm V0pisw+drAkf5nGnzypyY3fxhkWsMPEZgojIt4AkYvyewVpga1SHwj+e99Rzwuz37l43 +r3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686649136; x=1689241136; 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=myeX5Dw6+waNCZWCgIspsiK+vpR5MfiXN6PuO0NeKtA=; b=HPEH7dq4DaHyDVNACJaPBDd7QSXw2MBBK9I1/4Jzcroil4oCLySlU/NJEhetnY4meh AOMb4fKdh2BXIHt2L2TJcfsBne3E3JmUiksgwWKxEE8glIVJ+8oiuA7cOsazCIRpqYTg J6ec6QIAgGhDzL7f9z6yBmRVz1DYn8GUtf5UpssgCW4cHKxYcMYVR0vIoDeOQ2xqaDd/ 1SiFDqepBxY7gBOnOkbyCPQ0UsmZZh0p4WNyUfy2qaCBnYlTi4IOW87T6usp+TTXF0nU oe6xQoB2xhrAxFYm4pOyLHVdnvV+7lbWu0GF4VSSkiJvpTcbwIj/ZXRYEgjbOfXiqA5E IWzw== X-Gm-Message-State: AC+VfDwUkU5WASqse/il/SpBLmYCgmmDZFDu4caRSaZKdOONfBLL4m0w p2iSkYNCDuu9nqazPlH1Dv95WQ3HL458+qdVN4DY+w== X-Received: by 2002:a17:907:5cc:b0:96a:9467:1dc7 with SMTP id wg12-20020a17090705cc00b0096a94671dc7mr10626009ejb.25.1686649135979; Tue, 13 Jun 2023 02:38:55 -0700 (PDT) Received: from localhost.localdomain ([185.140.244.249]) by smtp.gmail.com with ESMTPSA id k22-20020a1709067ad600b00973ca837a68sm6381930ejo.217.2023.06.13.02.38.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Jun 2023 02:38:55 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PULL 07/17] target/i386/helper: Remove do_cpu_sipi() stub for user-mode emulation Date: Tue, 13 Jun 2023 11:38:12 +0200 Message-Id: <20230613093822.63750-8-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230613093822.63750-1-philmd@linaro.org> References: <20230613093822.63750-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=philmd@linaro.org; helo=mail-ed1-x534.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é Reviewed-by: Richard Henderson Message-Id: <20230602224628.59546-2-philmd@linaro.org> --- 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