From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:35268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goe3Z-0008Eg-Ch for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goe3Y-0000yN-Bf for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:45 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56819) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goe3Y-0000oe-87 for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:44 -0500 From: "Emilio G. Cota" Date: Tue, 29 Jan 2019 19:47:22 -0500 Message-Id: <20190130004811.27372-25-cota@braap.org> In-Reply-To: <20190130004811.27372-1-cota@braap.org> References: <20190130004811.27372-1-cota@braap.org> Subject: [Qemu-devel] [PATCH v6 24/73] riscv: convert to cpu_halted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini , Palmer Dabbelt , Sagar Karandikar , Bastian Koppelmann , Alistair Francis Cc: Palmer Dabbelt Cc: Sagar Karandikar Cc: Bastian Koppelmann Cc: Alistair Francis Reviewed-by: Palmer Dabbelt Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- target/riscv/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index 81bd1a77ea..261d6fbfe9 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -125,7 +125,7 @@ void helper_wfi(CPURISCVState *env) { CPUState *cs = CPU(riscv_env_get_cpu(env)); - cs->halted = 1; + cpu_halted_set(cs, 1); cs->exception_index = EXCP_HLT; cpu_loop_exit(cs); } -- 2.17.1