Message ID | 20190304181813.8075-25-cota@braap.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E074114DE for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 4 Mar 2019 18:37:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD97829AC3 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 4 Mar 2019 18:37:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C05CF2A080; Mon, 4 Mar 2019 18:37:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CAEA29AC3 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 4 Mar 2019 18:37:32 +0000 (UTC) Received: from localhost ([127.0.0.1]:58865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1h0sSx-00088y-GO for patchwork-qemu-devel@patchwork.kernel.org; Mon, 04 Mar 2019 13:37:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1h0sAm-0008Rx-01 for qemu-devel@nongnu.org; Mon, 04 Mar 2019 13:18:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cota@braap.org>) id 1h0sAk-0001HH-5U for qemu-devel@nongnu.org; Mon, 04 Mar 2019 13:18:43 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:46737) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1h0sAj-0000xW-TH for qemu-devel@nongnu.org; Mon, 04 Mar 2019 13:18:42 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 94717370E; Mon, 4 Mar 2019 13:18:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 04 Mar 2019 13:18:22 -0500 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; s= mesmtp; bh=pvCRABs2BuHhmsRjNE0FOOVa+iRVXDES0f6yJjChkkc=; b=Wk7zi HenbA2v8bvdHkSeWwelvvGaHuJ8zc8+dfvtCXL5GpvKjcLEFzKOc1CPNEju0Z174 vo8bjpYx3mkk9k3yG8E32uFCvbyUq/zcGWz0ZlkDjn2r7Orrex+6rKDNOPG3mba5 s9LTEYsMuXjFUEXQKgRrYWZ5Hd+KngEcH+V49s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=pvCRABs2BuHhmsRjNE0FOOVa+iRVX DES0f6yJjChkkc=; b=d+LpMdg7Z/L/+6jVjMzTXj9Gb2sl6prN/xg6IsG8SURZH Qkc5/nWtbLu5J4rJb1QhonBb48Q1hr0RaLw6qYjHO03Vt/rPLCWNp1koVz0jPgQU tejH7yQO/k5O8nurG6uY/X6/er5CP0hktxEzCj4dK1oID835yJ1DhkMc5sfczasa N4j+fRBp+2h6i8qCqwspor2WCfIH5S7aY4JgzI4S/QVapipPerk9G1Ka5jEytEje bxWn86LN9jWZOu4V6OT54Hd16DYjcWCNuDQFDtEjQVrAuKrzNxTCxP5fRzTz8Ink c2Irk7PnU3BOWsm6TMwlR0SpeonH/2PUhkJvxtSZQ== X-ME-Sender: <xms:7Wt9XLnNoCGvr_QhU8YgVLqnVptDMbY2TqKVBPqTDVtuyWAjKck_eg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrfedugdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfsedttdertdertddtnecuhfhrohhmpedfgfhmihhlihho ucfirdcuvehothgrfdcuoegtohhtrgessghrrggrphdrohhrgheqnecukfhppeduvdekrd ehledrvddtrddvudeinecurfgrrhgrmhepmhgrihhlfhhrohhmpegtohhtrgessghrrggr phdrohhrghenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: <xmx:7Wt9XPc9uz9sp13tTd60cIv-KSR9Q5xEtqLr0qITKXdeelm1cO0Ytw> <xmx:7Wt9XMwbqwQ5U60F3CgYnmqk3vte4luT-bqbtveSe1DpoZfxw2r_uA> <xmx:7Wt9XIIoj1o2E_6KEbVE0tQ3c-6SqVVQOonDccF4Prq3hwhaiNUqCA> <xmx:7Wt9XCPGjwoGwYv5U15_OZFMcrnUVVJ-S1xz_fRKiOXg85K1JQ9N-A> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id C625F10318; Mon, 4 Mar 2019 13:18:20 -0500 (EST) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Mon, 4 Mar 2019 13:17:24 -0500 Message-Id: <20190304181813.8075-25-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190304181813.8075-1-cota@braap.org> References: <20190304181813.8075-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.147.123.25 Subject: [Qemu-devel] [PATCH v7 24/73] riscv: convert to cpu_halted X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Palmer Dabbelt <palmer@sifive.com>, Richard Henderson <richard.henderson@linaro.org>, Alistair Francis <alistair23@gmail.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[v7,01/73] cpu: convert queued work to a QSIMPLEQ
|
expand
|
diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index b7dc18a41e..7732b4ba32 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -135,7 +135,7 @@ void helper_wfi(CPURISCVState *env) get_field(env->mstatus, MSTATUS_TW)) { riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, GETPC()); } else { - cs->halted = 1; + cpu_halted_set(cs, 1); cs->exception_index = EXCP_HLT; cpu_loop_exit(cs); }