Message ID | 20181019010625.25294-14-cota@braap.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=braap.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=braap.org header.i=@braap.org header.b="2yDPWvb3"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="BYQ+acPV"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bnsB65tNz9s8F for <incoming@patchwork.ozlabs.org>; Fri, 19 Oct 2018 12:10:22 +1100 (AEDT) Received: from localhost ([::1]:45897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1gDJIy-0007gz-Bz for incoming@patchwork.ozlabs.org; Thu, 18 Oct 2018 21:10:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1gDJFQ-0004UG-L8 for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cota@braap.org>) id 1gDJFN-0002nr-Fd for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:40 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1gDJFM-0002ki-RA for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:37 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 79FCB2295B; Thu, 18 Oct 2018 21:06:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Oct 2018 21:06:29 -0400 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=/cI7AiTDfXj25Lzuwvq6ya6sa51H5RedLNYBIBG/3/A=; b=2yDPW vb3TWIODi9OdxnVTBiAz7wu8G9GXzm6DvHDZ4vm88Z8iFRaaFHJqFWg6vkwyesfK 9KhwS3ppx7McoVYfDX0QbDTGxCmSb1QwQoC43iWMaYjgPRYeAarPpZMJoiFtI7HR qWvQif3l2C/xNcUzq4BnRnAzFuBCpGvFn8r/8M= 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=fm1; bh=/cI7AiTDfXj25Lzuwvq6ya6sa51H5 RedLNYBIBG/3/A=; b=BYQ+acPVlGX1fD4key8j52rf6LcyKxCA0Up1FhvUIZ3ev Vs8cyXj2WZaYQb2m7YP7p/lm0b2U2/yQNb164F4F8C9kMnWp7931AtjCHgWxQ35t 8f9ZOhl4jNMjr1CXEshC09x4B+zklHi8dNrz5yPUWsKsf+CaUdWiQXKe3uN42Ni+ fNil5Edx6fgonUx/2VxFLjmn+AqJ5TEAs/z+a+Ewgr0AZL3uGsJfJzKUhtm0Q4pL 8BV+ESgTur3LHrjPEhOsHK3eWjkELvu5bORGnhJSmuksYxQmQKO+K12qoA4dcVMq V5EDIumjWEN3fqDvt755FoFEpxcRIz+KiKcuGMDsw== X-ME-Sender: <xms:FS7JWwu6e5xoKfLcT1SKnFyypKRucfc55RNQ7RHWrLvYYuzLS8n0IA> X-ME-Proxy: <xmx:FS7JW2Pgz4LlOAHiGc-wmjuhXJNPokbCPK88NNHxwKaXpbI2nbi85A> <xmx:FS7JW-axoNhebqi90oEdxlbH-Pta26sJ5e7in4Pk6Mnt2Skts2rIXw> <xmx:FS7JW82w3l4BrnwgW7udpRK5KeDEvPPa85eYtphKpBCGgvLG3ShajA> <xmx:FS7JW8eIkMLqVdiEzeCvOY5vwcwYTk2zYXEd_0hdf0FwYFylJhRFDQ> <xmx:FS7JW1HtDXdCC5zGSBdpjCWPKZjNksj1TyaApbO1u2ZQ6CiqjEe6Kg> <xmx:FS7JW2csO5nuf7YGeJ-GEEWXK96cgDtdnDFbe1pRUMQDvTGAFWopfQ> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 1BE4D102E2; Thu, 18 Oct 2018 21:06:29 -0400 (EDT) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 21:05:42 -0400 Message-Id: <20181019010625.25294-14-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181019010625.25294-1-cota@braap.org> References: <20181019010625.25294-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 Subject: [Qemu-devel] [RFC v3 13/56] lm32: 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: Paolo Bonzini <pbonzini@redhat.com>, Michael Walle <michael@walle.cc> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
per-CPU locks
|
expand
|
On 10/19/18 2:05 AM, Emilio G. Cota wrote: > Cc: Michael Walle <michael@walle.cc> > Signed-off-by: Emilio G. Cota <cota@braap.org> > --- > target/lm32/op_helper.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> +++ b/target/lm32/op_helper.c > @@ -31,7 +31,7 @@ void HELPER(hlt)(CPULM32State *env) > { > CPUState *cs = CPU(lm32_env_get_cpu(env)); > > - cs->halted = 1; > + cpu_halted_set(cs, 1); > cs->exception_index = EXCP_HLT; > cpu_loop_exit(cs); I am beginning to think this sequence of three should be its own helper... r~
diff --git a/target/lm32/op_helper.c b/target/lm32/op_helper.c index 234d55e056..392634441b 100644 --- a/target/lm32/op_helper.c +++ b/target/lm32/op_helper.c @@ -31,7 +31,7 @@ void HELPER(hlt)(CPULM32State *env) { CPUState *cs = CPU(lm32_env_get_cpu(env)); - cs->halted = 1; + cpu_halted_set(cs, 1); cs->exception_index = EXCP_HLT; cpu_loop_exit(cs); } @@ -44,7 +44,7 @@ void HELPER(ill)(CPULM32State *env) "Connect a debugger or switch to the monitor console " "to find out more.\n"); vm_stop(RUN_STATE_PAUSED); - cs->halted = 1; + cpu_halted_set(cs, 1); raise_exception(env, EXCP_HALTED); #endif }
Cc: Michael Walle <michael@walle.cc> Signed-off-by: Emilio G. Cota <cota@braap.org> --- target/lm32/op_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)