From nobody Tue Feb 10 17:34:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1643918524; cv=none; d=zohomail.com; s=zohoarc; b=U70iU+0AnwHskTkL5QFhAuh7gR7C9lcrE8rc9IXAljxHagzdBMdJiwB4GNNHFjxqSTZRSKsaawKnecqFJz5XFnyIYw2G+mrIPUMkP4wNH3jSS1b+qZMrJphYPjz2WA5V8P9cDnHre5kRlHWpTus5MajClSrd5vU7l/u7YOkwtHk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643918524; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=TT5ERS0mtyXmsWNPPryOjx250kFAPf8XEK5Py5HGmAc=; b=YOY5z4RTXK/ufkIF/3YlZR134DMxFoR3FF4xuY3ju4aYKO3HWn2AGI3T/quUQv1KUeHRswTLgYGCF7aPzaDgxBco5EUw8BzbVPEr1tpJ2cM/tUl6s1M9saXPCPGy4EIkmZHkqrO5JrmYOWyj4jiQJck4LU+f9EalcWYcnsoFXH4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1643918524979660.3052610523748; Thu, 3 Feb 2022 12:02:04 -0800 (PST) Received: from localhost ([::1]:35250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFiIq-0007Ac-TF for importer@patchew.org; Thu, 03 Feb 2022 15:02:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFhdo-0002ml-OO for qemu-devel@nongnu.org; Thu, 03 Feb 2022 14:19:39 -0500 Received: from [2607:f8b0:4864:20::436] (port=37589 helo=mail-pf1-x436.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFhdm-0002L1-QB for qemu-devel@nongnu.org; Thu, 03 Feb 2022 14:19:36 -0500 Received: by mail-pf1-x436.google.com with SMTP id y5so2101623pfe.4 for ; Thu, 03 Feb 2022 11:19:33 -0800 (PST) Received: from localhost.localdomain (154.red-83-50-83.dynamicip.rima-tde.net. [83.50.83.154]) by smtp.gmail.com with ESMTPSA id y2sm8211221pgf.33.2022.02.03.11.19.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Feb 2022 11:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TT5ERS0mtyXmsWNPPryOjx250kFAPf8XEK5Py5HGmAc=; b=qH+WEmJEfd6TyEmBB5FpDlLRQM6tfwR3iM/f/ZrbBgg/C9vvSGNnJMwpn/XBLSArkV O61ao5syA0aJM5/OLwnPqaXqJQ6IeIVZ0JJ4SS3Qf/XRgAQPq1rYwvEA0HCvdsCwSewL 9prtDJe+IZqaWYDaqYZWInvdAcA6T2Ef4JcuEwBAtKylVPKsTavbp5hRlyDsxXTHAdT1 suI9TKRq2mCA85qdW8zFSqAQgI21zjl+3BoXVuWiD2UB+ELpU2mvGwUGHVx4GragfGhM ogYqU9yES9/ACcTh8LKqxrlfrd3l0pLKxcrCAA0GOTBLYuOmLiVX4oH7lD+5zTzah4Mo Jlcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=TT5ERS0mtyXmsWNPPryOjx250kFAPf8XEK5Py5HGmAc=; b=hSy8FQ/zVkYfcwN1aiE5G/oxLlWbwwQKUr5d1JvTNUsNHFVn1mY43BQKJcVACivshA aqjMCujWcX0yy+UW/vLqOWfucNv/9aXF2Z/g73tzTyi7HUO+KAqrvaSyZ91HppO7mEgd dCNVv4W8r6cDv0Bp2W1x4iZbQ9pTxxnZlmE7WK7Hesv7KCHfQvC9ViywUi68nLk09qhE a8AOm/VcssLbFM6Bw/0ltxfdVBfl0K9KeOh5rWoarP9PlrK1S5E9hbJFssfqSLmrqCOS tChO3MlTulHnsSoxJRGRc4EUhm9zat07B/Tvocw/g5p8pvKsecyq09OHMO92e5/wuJmW Rkzg== X-Gm-Message-State: AOAM532GeJDNGMNx/qn0czKW6uHclqdUUdxAGtkcdV1cpg4i/nxDUjSk ilMzpmlffnGhwKA0ktV3VwnwO4JDIxU= X-Google-Smtp-Source: ABdhPJzVU10vzb2GDQ3+P906LvUVLYHZC0Ct5qHNDhfWQKvNE9lTNTyjIfiUnsXBWxvCiPIpjRjsvQ== X-Received: by 2002:a63:e418:: with SMTP id a24mr29176869pgi.169.1643915972516; Thu, 03 Feb 2022 11:19:32 -0800 (PST) To: qemu-devel@nongnu.org Cc: Richard Henderson , Thomas Huth , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 09/21] softmmu/cpus: Code movement Date: Thu, 3 Feb 2022 20:18:02 +0100 Message-Id: <20220203191814.45023-10-f4bug@amsat.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203191814.45023-1-f4bug@amsat.org> References: <20220203191814.45023-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::436 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-pf1-x436.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Reply-to: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= via X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1643918528146100003 We want cpu_thread_is_idle() to use cpus_accel, so declare this variable earlier. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- softmmu/cpus.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/softmmu/cpus.c b/softmmu/cpus.c index 7f15106dd9..538e1714af 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -66,6 +66,11 @@ =20 static QemuMutex qemu_global_mutex; =20 +/* + * The chosen accelerator is supposed to register this. + */ +static const AccelOpsClass *cpus_accel; + bool cpu_is_stopped(CPUState *cpu) { return cpu->stopped || !runstate_is_running(); @@ -126,11 +131,6 @@ void hw_error(const char *fmt, ...) abort(); } =20 -/* - * The chosen accelerator is supposed to register this. - */ -static const AccelOpsClass *cpus_accel; - void cpu_synchronize_all_states(void) { CPUState *cpu; --=20 2.34.1