From nobody Fri Nov 7 22:59:22 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548810529758913.4713917410479; Tue, 29 Jan 2019 17:08:49 -0800 (PST) Received: from localhost ([127.0.0.1]:58042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goeMw-0007H4-JW for importer@patchew.org; Tue, 29 Jan 2019 20:08:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goe3a-0008GO-Tp for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goe3Z-0000zk-SB for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:46 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59567) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goe3Z-0000pM-Nm for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:45 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 447A4220F7; Tue, 29 Jan 2019 19:48:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 29 Jan 2019 19:48:19 -0500 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id E3C87E4667; Tue, 29 Jan 2019 19:48:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=T1jvfbjZQbcYAiRnhSGINWUuTxHdTdCdEdsW64M5tr4=; b=ffpofg9ljSbU 4WSwkh1i+t6ZUItLSpyybBbd1FpZhKZmpDUT8BREgQvfkrqO5q/ThFnPtaSMzfDS 1WdybqJzHnEO+iG7VnmwTxKxeUwnJGhBS3U0Ui26HpH1Z6LEqkCZxbiudKMznlJy f0GCQrSS+jnKiJeziLL4rZ8HYCEtNUY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=T1jvfbjZQbcYAiRnhSGINWUuTxHdTdCdEdsW64M5t r4=; b=qH+tIJ1C3P1crCHXB7k3yptK0aqunXqhimfn+Vth4dBWSe6Lob6yYOgg4 S/gFuslMQ/O+6vlb+0+r8N4H0oU4XreaOlCA3/4mlZiVjHbssSMq4yBrh12APHU6 BEZq//3dAemv+khGlwD//ASf1yRgCGHVy25um0xuqI5x3A9dSbm6kgQLwj1kX8fy J9XsOBt0wyiHdDlFASprO+rdTBQbOrcWdjtdHaHnvtlQe0PhwoZgm7drcVLlwOnI 1CZ7MfVu8DeuLxTZfdwnHK7LV8wI/QMhpwBsviqpDzSx/mekaQnKqnvPjvk53dQH SSmlvNH7k5ojei/GDtFYcgXjJt4JA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrjeefgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojg hfgggtgfesthekredtredtjeenucfhrhhomhepfdfgmhhilhhiohcuifdrucevohhtrgdf uceotghothgrsegsrhgrrghprdhorhhgqeenucfkphepuddvkedrheelrddvtddrvdduie enucfrrghrrghmpehmrghilhhfrhhomheptghothgrsegsrhgrrghprdhorhhgnecuvehl uhhsthgvrhfuihiivgepke X-ME-Proxy: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Tue, 29 Jan 2019 19:47:24 -0500 Message-Id: <20190130004811.27372-27-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190130004811.27372-1-cota@braap.org> References: <20190130004811.27372-1-cota@braap.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH v6 26/73] sparc: convert to cpu_halted X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Mark Cave-Ayland , Richard Henderson , Artyom Tarasenko , Fabien Chouteau Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Cc: Fabien Chouteau Cc: Mark Cave-Ayland Cc: Artyom Tarasenko Reviewed-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Mark Cave-Ayland Signed-off-by: Emilio G. Cota --- hw/sparc/leon3.c | 2 +- hw/sparc/sun4m.c | 8 ++++---- hw/sparc64/sparc64.c | 4 ++-- target/sparc/helper.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index fa98ab8177..0746001f91 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -61,7 +61,7 @@ static void main_cpu_reset(void *opaque) =20 cpu_reset(cpu); =20 - cpu->halted =3D 0; + cpu_halted_set(cpu, 0); env->pc =3D s->entry; env->npc =3D s->entry + 4; env->regbase[6] =3D s->sp; diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index 709ee37e08..ddcc8d8c4f 100644 --- a/hw/sparc/sun4m.c +++ b/hw/sparc/sun4m.c @@ -167,7 +167,7 @@ static void cpu_kick_irq(SPARCCPU *cpu) CPUSPARCState *env =3D &cpu->env; CPUState *cs =3D CPU(cpu); =20 - cs->halted =3D 0; + cpu_halted_set(cs, 0); cpu_check_irqs(env); qemu_cpu_kick(cs); } @@ -198,7 +198,7 @@ static void main_cpu_reset(void *opaque) CPUState *cs =3D CPU(cpu); =20 cpu_reset(cs); - cs->halted =3D 0; + cpu_halted_set(cs, 0); } =20 static void secondary_cpu_reset(void *opaque) @@ -207,7 +207,7 @@ static void secondary_cpu_reset(void *opaque) CPUState *cs =3D CPU(cpu); =20 cpu_reset(cs); - cs->halted =3D 1; + cpu_halted_set(cs, 1); } =20 static void cpu_halt_signal(void *opaque, int irq, int level) @@ -825,7 +825,7 @@ static void cpu_devinit(const char *cpu_type, unsigned = int id, } else { qemu_register_reset(secondary_cpu_reset, cpu); cs =3D CPU(cpu); - cs->halted =3D 1; + cpu_halted_set(cs, 1); } *cpu_irqs =3D qemu_allocate_irqs(cpu_set_irq, cpu, MAX_PILS); env->prom_addr =3D prom_addr; diff --git a/hw/sparc64/sparc64.c b/hw/sparc64/sparc64.c index 408388945e..372bbd4f5b 100644 --- a/hw/sparc64/sparc64.c +++ b/hw/sparc64/sparc64.c @@ -100,7 +100,7 @@ static void cpu_kick_irq(SPARCCPU *cpu) CPUState *cs =3D CPU(cpu); CPUSPARCState *env =3D &cpu->env; =20 - cs->halted =3D 0; + cpu_halted_set(cs, 0); cpu_check_irqs(env); qemu_cpu_kick(cs); } @@ -115,7 +115,7 @@ void sparc64_cpu_set_ivec_irq(void *opaque, int irq, in= t level) if (!(env->ivec_status & 0x20)) { trace_sparc64_cpu_ivec_raise_irq(irq); cs =3D CPU(cpu); - cs->halted =3D 0; + cpu_halted_set(cs, 0); env->interrupt_index =3D TT_IVEC; env->ivec_status |=3D 0x20; env->ivec_data[0] =3D (0x1f << 6) | irq; diff --git a/target/sparc/helper.c b/target/sparc/helper.c index 46232788c8..dd00cf7cac 100644 --- a/target/sparc/helper.c +++ b/target/sparc/helper.c @@ -245,7 +245,7 @@ void helper_power_down(CPUSPARCState *env) { CPUState *cs =3D CPU(sparc_env_get_cpu(env)); =20 - cs->halted =3D 1; + cpu_halted_set(cs, 1); cs->exception_index =3D EXCP_HLT; env->pc =3D env->npc; env->npc =3D env->pc + 4; --=20 2.17.1