From nobody Sun Sep 28 16:28:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1758735792; cv=none; d=zohomail.com; s=zohoarc; b=AfYxBhNLbtSTDa5xuuSpCVmHefaLuBa2SsgVKFcXDQVJM1ZPxUgHAjT18vzdn+9zrbjN/kUjd3z01exIWevJaGFgchih09SBnHAlHPFCvwi0qn6McwlvjGeg9vjIgEc48ia89hLEKUI+NvMw7Uqstz0gfW9T1APzW3V+X88/PLQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758735792; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XgP/SlDqzLAkZxB07VH59pvZW9H2es6rdlsD06W1oMQ=; b=aw0z6rHgGT1CK5w4vd04koLtWB3pIWffxgRfDK4V9QJTiiPkS9uxVfZgZvMwAUxpY4N+tM9cATWIo27Td+sFLLXO+T1Lh09DywwdXs/9YRGyUYLpNcSCtd4ZVrylsXjLAPjFdRHI3mKuot6duajpiK3JT0qS0q8G0ZN7uNTvkCU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 1758735792948749.8384831760227; Wed, 24 Sep 2025 10:43:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v1TUh-0002WE-GO; Wed, 24 Sep 2025 13:41:33 -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 1v1TUZ-0002Si-F6 for qemu-devel@nongnu.org; Wed, 24 Sep 2025 13:41:24 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1v1TU8-0001La-N3 for qemu-devel@nongnu.org; Wed, 24 Sep 2025 13:41:23 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3f2cf786abeso96031f8f.3 for ; Wed, 24 Sep 2025 10:40:54 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3ee07412111sm28505631f8f.28.2025.09.24.10.40.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Sep 2025 10:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1758735652; x=1759340452; darn=nongnu.org; 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=XgP/SlDqzLAkZxB07VH59pvZW9H2es6rdlsD06W1oMQ=; b=kXL2q5gU8Bq/wAqQFBJuU55tb1C0Np99ySZ7LzR534vI5rYjrW784bzzUMGox+umwH CZGLpotvKDUwQlbXvxZDXTbLsxYs756lFvu5tZI4kAqAnabIC2ZT9GJWgi+ORwiGNxSg UfCJ7qDaSSQJKfOHgNWzsHFG2DzJ7JbDD7ORL2OuXl2pJQYZcgW4gKsD+KnMcy8Kjmxn bL8IrEL1zVudIOHOXvE3dm6OrNiwGpf1/KEjGEYjBbt76hPVmgCTAdLXSmBEFC7cmvWX /AVbWote0ow7FuN8UXdeNIaCpexcdwuJSs0AhHIvQa9svCkSuvX6crs0mcCN7cFzCIYT ddNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758735652; x=1759340452; 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=XgP/SlDqzLAkZxB07VH59pvZW9H2es6rdlsD06W1oMQ=; b=v9K8Nfwdt0bv8POGDRSZj2EDOFMESId/8DO97aCke+FEVOk7giSW7BkwYi+YSCIjED EDxCyDveSdHWhefgJEC63Y5QbrUJrvQR9LkGJrviW8VanJ/i/IaOd9b2YS+ZiqPxeLIj PkkpcZkAzPTLDY1Gp1GVJR5gBKK+pp/Rk8WdMrZPr/fuQSUAd5v030Yxa+ERV1vAktV0 /fGLosePmPv2dANTI+BqxDeSydMB0F5QdgoxLPRCRLc0RdsFBEKeMC0LDETxX7INJt6U +KopzGa0olSl2JjJyHChWlrs5X4vwtMvw1VebJasaC9D8E1GOUI332r+ajSohcEGWWAv nuWw== X-Gm-Message-State: AOJu0YxwJECqVgOqU7CJIqL2bDU+v3Vu2k7dvjO1mgaCsvitorDM/WSr qnk2SLS5qlpkLiv618eXDo6pMh3KBp9q0opCo6SA+d+W+eOzc9KE00obGbH3Uy5WbZtG2EukaRm /LHJ/KNi98Q== X-Gm-Gg: ASbGncsD5r0QGQcOAgS7NFr3E3vPiv1Yr1iPtmuxeqk0Tx4r+MiI1nRx+LK8A6ej8QM UK3+KFqmkFc6QlPd85IUJsfmiBThbumVSnowFQoTdNHPJyWZXdCjTc6TNALQEV2mnxvhjsyvkw5 gc+UQtt1HKQSeArW+eL9clgKbRTS1WPTx/MewlbytFFbCzgOi5dByrWSEEBJtmtcx2zGxFBMEyP Od6xe0ZZBIJ1I/+2Y1pSBViLdixex3fB3v+vx2rpsEgFFvC5dV4eFRzUiAbmdqYM0SWyVOGRCnc 3llriS8NYeY/QlFxfDenxToZEy6PW2bnHo9nlmf5hjFG1I9clajH060uI/osJ6QjzXAEyBFxcVj HKxcybk/pz74EohSa9rDqB9owk35b/VVzNpKmaguiujYWaLtYkKyUfUr5DKgId463ZNtJxDgbep 2rbiJNuo4= X-Google-Smtp-Source: AGHT+IGKALQvK2IymTzirRSUOCHtCFKE3H2+yLOth9dvEL74oPjnNCpbyZHhVRnc4DTnFOlqOR9/dQ== X-Received: by 2002:a05:6000:1848:b0:3e7:4719:a024 with SMTP id ffacd0b85a97d-40e4a8f9a9emr531836f8f.18.1758735652416; Wed, 24 Sep 2025 10:40:52 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcel Apfelbaum , Eduardo Habkost , Yanan Wang , Zhao Liu , Max Filippov Subject: [PATCH 1/2] hw/core/cpu: Expose CPUState::start_powered_off docstring Date: Wed, 24 Sep 2025 19:40:44 +0200 Message-ID: <20250924174045.54241-2-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250924174045.54241-1-philmd@linaro.org> References: <20250924174045.54241-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=2a00:1450:4864:20::435; envelope-from=philmd@linaro.org; helo=mail-wr1-x435.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1758735794760116600 The comment about @start_powered_off is buried within the CPUState structure. Hoist it to the structure docstring comment. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- include/hw/core/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index fb788ca1107..f88765e525c 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -412,6 +412,7 @@ struct qemu_work_item; * QOM parent. * Under TCG this value is propagated to @tcg_cflags. * See TranslationBlock::TCG CF_CLUSTER_MASK. + * @start_powered_off: Indicates whether the CPU starts in powered-off sta= te. * @tcg_cflags: Pre-computed cflags for this cpu. * @nr_threads: Number of threads within this CPU core. * @thread: Host thread details, only live once @created is #true @@ -496,7 +497,6 @@ struct CPUState { bool stop; bool stopped; =20 - /* Should CPU start in powered-off state? */ bool start_powered_off; =20 bool unplug; --=20 2.51.0 From nobody Sun Sep 28 16:28:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1758735790; cv=none; d=zohomail.com; s=zohoarc; b=fSxykwM25NXswTkpSWTJEM1RbiV4W6ZmA90WkKpgpswe9pC/Q8j+K4AloI/Yck1YmoBvG6h3KANO+Bhkp6T/PjiNPpAIqHID2pHylabvg+zbJTq4be62M19GTHMNwr1z/VGUjS66/04+QcQrGKthl68kEaQUiW+VGes70iBHKjg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758735790; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RWZ1JRHTlGSHokgnR/eQLyapYp/xb5SnnlRWZ8dIPBk=; b=XYHknuIUpZgP8R1/eJY7YOdQCNRGpc27Ybn1bnvpCSPLJy6p5hkUileePpEBFdmF+OIYO+ahgvy88eJzuL0XGJM2z5kDgmdaxbuxX+nI78bOQv8JcNjq0cYFjfftQye3zGvqOtzalS9V8IXUTqjvVH3v4GRDZcLkyxIxzl2nExQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 1758735790923481.8563476151479; Wed, 24 Sep 2025 10:43:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v1TUh-0002WI-Go; Wed, 24 Sep 2025 13:41:32 -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 1v1TUd-0002VN-Sd for qemu-devel@nongnu.org; Wed, 24 Sep 2025 13:41:28 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1v1TUH-0001NB-8a for qemu-devel@nongnu.org; Wed, 24 Sep 2025 13:41:26 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-45b4d89217aso315005e9.2 for ; Wed, 24 Sep 2025 10:41:00 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e330fbcc5sm196475e9.4.2025.09.24.10.40.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Sep 2025 10:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1758735657; x=1759340457; darn=nongnu.org; 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=RWZ1JRHTlGSHokgnR/eQLyapYp/xb5SnnlRWZ8dIPBk=; b=aBOuMjp8fczCcfm0PfWahPmmdtGRaegMm9waRHDX5ADxZmMESEinYesvyhP6UvGtx/ PeFsd301VCvFBkAaQs9Z299awD0AGs92jaw8ELUkdGsAEAbg/bh77X16HQZvj6nAey1r WInTwvinUoXAdGwBaC4Nb4JxTkO9oMYxd4KsOeqXKnUm2Rl2K/hG910c3JbUMV5MY4EI KD0HXbcYA1niBW6vHeKtaN8tTW3c5ZMtsrypsXLZO7mAXPYb1LE1UXogrZ1Dwyf6Nafe A7ENT8HtRpBM+r8TxEUkLMl62nOtYapZVhr4+HaWOzaoPnC442axva45lfjI2k+1Q0zs 2rlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758735657; x=1759340457; 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=RWZ1JRHTlGSHokgnR/eQLyapYp/xb5SnnlRWZ8dIPBk=; b=NebhFG1v21L7UXRCHuuHuoajeYzsLILbouIWrqfjIHCi4i8d+GMtW7u4I7jrIyjT6E IaUjG/xt0BSkpDlC+F6QhDWXae2Lxzgzv/XgMexCtHBkrbS4P/gqCAmu81box7MlNHRg 92lkubJKms1abvdhz+03h38+H+lCXGDnhT1Zw40mZsqJakY9IGUr78kyxh3I2jZ4XXIO bkyZ+wHdeVENidBCzuSiiAlR+zJ+JMUNxKVU+bUI0Hc+KlWi5vd7IyguFkxO7LsfrBba R/NN7p/SnbnnbyHIB1WBS/C+CdruaqdrVLpHYjK/Rlb77ByX87Ih6sG8srKFyaTPVZ3V 2tIg== X-Gm-Message-State: AOJu0YwMhHLI8kQT28pE6oUTOLzNB9qa7SaF4vya+waxJY1kY6v2PFU6 +bhowar8vIAXlv/mouZQ4do6HdTHWhzVr7ARbhmfvZa8++5tVEzsHW+4bAwVKyq6lpxWDbY8fyK +COLIz1kR0g== X-Gm-Gg: ASbGnctzflb41Gf2ZpkQqHCKiTLC3gKr4C/OFAfqoBpoXM1fViG/N9kUWqQEJyQfR9h UlI7zM6vfRxKNSeBPqIxkBJeHxfmz6RdcAjLeo3YtdwZ/JTmGNscr10W3+s1xk/GhUF42H8rLkg wgGbXZ501n4MPSm/ryZhAk2aZOSPiqyqvf5/giIUJxHo9uItCronc9GDOjdHbPvuNxRzpHPfmNe phkgTkmEz+SqB1zabGth2rFfYEvUzMQpblwwCydlzCeg0z5LtOWztbYHG0VJqY2OXdmMl9nET+Z QSPvNgdRKgVi3TdlVjzMmrXoVEQ6d7Hzh2MME2M9qTtQ4xh97AEldCfw1M8VFwvzGU3Atw2H/9d B/u51TO5wqx6Q6sAlHEOyGrx0WbIEEoyOGKrW3WA4E+ptfa1svX97++hDQ6q5om+wRlZzHMO1 X-Google-Smtp-Source: AGHT+IGFCdnli76wsWxUzq4b/xsF11xfDJP4Gbu+KTW+VglfdcnxwFABWru9sEdBIq2Xz9i0I1+1bQ== X-Received: by 2002:a05:600c:3226:b0:45f:2922:2aef with SMTP id 5b1f17b1804b1-46e32a0e227mr4353685e9.28.1758735657472; Wed, 24 Sep 2025 10:40:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcel Apfelbaum , Eduardo Habkost , Yanan Wang , Zhao Liu , Max Filippov Subject: [PATCH 2/2] target/xtensa: Replace CPUXtensa:runstall by CPUState:start_powered_off Date: Wed, 24 Sep 2025 19:40:45 +0200 Message-ID: <20250924174045.54241-3-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250924174045.54241-1-philmd@linaro.org> References: <20250924174045.54241-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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, T_SPF_TEMPERROR=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1758735792767116600 CPUXtensa::runstall and CPUState::start_powered_off are semantically equivalent. Replace the target specific field by the generic one. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/xtensa/cpu.h | 1 - target/xtensa/cpu.c | 8 ++++++-- target/xtensa/helper.c | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index 74122ebe15c..43b8cabdcd3 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -529,7 +529,6 @@ struct CPUArchState { xtensa_tlb_entry dtlb[10][MAX_TLB_WAY_SIZE]; xtensa_mpu_entry mpu_fg[MAX_MPU_FOREGROUND_SEGMENTS]; unsigned autorefill_idx; - bool runstall; AddressSpace *address_space_er; MemoryRegion *system_er; int pending_irq_level; /* level of last raised IRQ */ diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index ea9b6df3aa2..65f0e778775 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -143,7 +143,7 @@ static bool xtensa_cpu_has_work(CPUState *cs) { CPUXtensaState *env =3D cpu_env(cs); =20 - return !env->runstall && env->pending_irq_level; + return !cs->start_powered_off && env->pending_irq_level; } #endif /* !CONFIG_USER_ONLY */ =20 @@ -204,7 +204,11 @@ static void xtensa_cpu_reset_hold(Object *obj, ResetTy= pe type) =20 #ifndef CONFIG_USER_ONLY reset_mmu(env); - cs->halted =3D env->runstall; + if (cs->start_powered_off) { + cs->halted =3D 1; + } else { + cs->halted =3D 0; + } #endif /* For inf * 0 + NaN, return the input NaN */ set_float_infzeronan_rule(float_infzeronan_dnan_never, &env->fp_status= ); diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c index 2d93b45036d..a64df1cadac 100644 --- a/target/xtensa/helper.c +++ b/target/xtensa/helper.c @@ -311,11 +311,13 @@ void xtensa_runstall(CPUXtensaState *env, bool runsta= ll) { CPUState *cpu =3D env_cpu(env); =20 - env->runstall =3D runstall; - cpu->halted =3D runstall; if (runstall) { + cpu->start_powered_off =3D true; + cpu->halted =3D 1; cpu_interrupt(cpu, CPU_INTERRUPT_HALT); } else { + cpu->start_powered_off =3D false; + cpu->halted =3D 0; qemu_cpu_kick(cpu); } } --=20 2.51.0