From nobody Mon Feb 9 00:43:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) client-ip=209.85.221.43; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f43.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1646571652; cv=none; d=zohomail.com; s=zohoarc; b=n+g7C4cPdLypdUxc5y4WA5joAfr+Rh42W6FHBtYFMC1SaX5R1xXWtDVFzuRaJnKcHzgcA4s3fb3T5dRuofUiAyKJR3CC+wjB/q0YjSu8wGYl1VLWU7UJJm1MtyNQyvbaio/YznXs4/o+R4rxSOqa9XkEa4rRAaDiSOhvGP4y12M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646571652; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=wRKKtrjpp0+1DXkNAVw3eWJwoNJF/xGOZH7P/rcwfrk=; b=ebBHbTSXkXZzIiph3Vlwjv8FyzgoEEk1MILsCjTG32yZw+8UknL+AxPR9N0XaV8wwwLQ7T4SOsmhmlE+kaswREBFJxHz9VXnYqMSTdDWyJ3LwlIYO5KozwiLeXtqUsLc+yT1tsoPh4iOTYG175PIZp0ZCtJfCynfaNclJFIqdOY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=pass header.from= (p=none dis=none) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.zohomail.com with SMTPS id 1646571652992708.5369526822383; Sun, 6 Mar 2022 05:00:52 -0800 (PST) Received: by mail-wr1-f43.google.com with SMTP id x15so19301747wru.13 for ; Sun, 06 Mar 2022 05:00:52 -0800 (PST) Return-Path: Return-Path: Received: from nuc.lan ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id e4-20020adffc44000000b001f1dba38a65sm3797010wrs.105.2022.03.06.05.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 05:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wRKKtrjpp0+1DXkNAVw3eWJwoNJF/xGOZH7P/rcwfrk=; b=Xfq84Lx9yoMyx5TzzP05HhBAbwQtDgLorefKBpAm1NhTM9obz/l06xAwAKKs3W71tZ o2H88kUJnuG2Uy7T2lPLM58m5pX1y2mXbqpNKf4y5N2NEEOFZEc04eY9o/EZbBb6O6nC f8jl+i4jsQoJmlHiuVCVeSfff49NRBIzQIipb1jxu3dQKkPzo5gCxW3zqWZJNRAcxYEf +VcnxGOK6PrTZZ+hw2H4NZ4FCK3e3pAtbql7f/mmNl1nX+SiZIyQzGPeP2u1BTqN6iBJ uLbyBlIzimVmEI4M3MM84L3LYmrXFPXmDgwR7mtDSKXvSiBh6Y/DHwTAcOoeRHTvz9IU Ireg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wRKKtrjpp0+1DXkNAVw3eWJwoNJF/xGOZH7P/rcwfrk=; b=IIj1Xz19MMa9JpAwnfBQ97hZHH6m8YI5NqvduiTJjY3TgFJg9dDn23zCPJHQZPYKBd /a6bE5x1XWYmJICXG6cmFSzSiNK0153drN+zX5svHuxCgafkGzGXzoN6z51K8w+OEjkJ ogvvX7NzGLP+NgonZnffD2GMOGYm61HBY3sxZXVV1IGoF2D9KGNPp1DfxxaaLM9wgIAI y/gWFSwSr839KnG/Enebjskf8CMqocplMqecbERcAVf4x6LHC7yuhoHlBL/yp/mcgfLv f5oIuOsWIXOqLuAu7YwAO7i6pC0Ye5khEcEM4hifSlzOAq5f0cjGPSlEFB1mcH3zia6n CG5Q== X-Gm-Message-State: AOAM532oNBQbd0XrwSSGz2ljU7miHiEPrPnZsNRudtVbVe3GaoRbiSsR d+z7md0kZSEgCr7cHdGpEfM= X-Google-Smtp-Source: ABdhPJyjQ+ZbJUP+C2ABsS6u2kt3FFjRW6P7GhI36Ae8nO7PiDxIceSsEP9Cr+bd707G44O0anCVfQ== X-Received: by 2002:a05:6000:1862:b0:1f1:f526:7901 with SMTP id d2-20020a056000186200b001f1f5267901mr1318560wri.485.1646571651161; Sun, 06 Mar 2022 05:00:51 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Eduardo Habkost , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 09/33] softmmu/cpus: Code movement Date: Sun, 6 Mar 2022 13:59:36 +0100 Message-Id: <20220306130000.8104-10-philippe.mathieu.daude@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> References: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1646571654137100001 From: Philippe Mathieu-Daud=C3=A9 We want cpu_thread_is_idle() to use cpus_accel, so declare this variable earlier. Reviewed-by: Paolo Bonzini Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20220207075426.81934-10-f4bug@amsat.org> --- softmmu/cpus.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/softmmu/cpus.c b/softmmu/cpus.c index 3f8fae43ba6..ac6bec56038 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -67,6 +67,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(); @@ -122,11 +127,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.35.1