From patchwork Mon Sep 17 16:30:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 970716 Return-Path: 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=) 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="VSv3MxLg"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Y2ht1P9R"; 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 42DXFH4338z9sfR for ; Tue, 18 Sep 2018 02:50:58 +1000 (AEST) Received: from localhost ([::1]:36543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1wjg-0005k8-Gw for incoming@patchwork.ozlabs.org; Mon, 17 Sep 2018 12:50:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1wQo-0006Qn-Ri for qemu-devel@nongnu.org; Mon, 17 Sep 2018 12:31:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1wQl-00029A-84 for qemu-devel@nongnu.org; Mon, 17 Sep 2018 12:31:26 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:43881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1wQk-0001pl-UC for qemu-devel@nongnu.org; Mon, 17 Sep 2018 12:31:23 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id EA66D507; Mon, 17 Sep 2018 12:31:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 17 Sep 2018 12:31:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=XCYMXs9Fea9GyP i+NjswNX3/WsPBsRrCOrM+P4+ZG6Y=; b=VSv3MxLgt9kupaIHU3yyXu2ivQAVaR 2ahMLJUCuhR2/touvBc1HvgbYZIr6I/XgVZyocjuC14+P+UY6d7e7Y6dY8HkBYGo 9PzRdmJvh5+QdpD8cKCZRv+5Dm7kfujJ9xdw+HgQ5bgORPSQggYZ33JdDQyYeLT1 cdY9W7pjLLoEM= 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-sender:x-me-sender:x-sasl-enc; s= fm3; bh=XCYMXs9Fea9GyPi+NjswNX3/WsPBsRrCOrM+P4+ZG6Y=; b=Y2ht1P9R 203GJIsiYLYU0fkGanQSqNNK7GwKjBVugzalI5EcIxG3dtTJdNbXmSTSjMIIG6Jc jcfrS/PySzVj4Ovk3NbhdWf2c3MpVeGe7+WFqeUWPm3knheTds7xsDWsYds0dqy8 6HHhSGowq1c3YT6u16riVvCXoZb8vTNLiT9mkwV+Qi/Yjf8eubu+lt6qulvU2HCm xbZhIzlVXUfwDxyit37fuy5EFD4EBWzHfpQ3W05xErFzLhbNRfX8VvLVcKcaHpM/ mKCcTSNsASSmYwxoPOY0vLt8qvckrWDFk/6EFf/u8b77l+ANquv3qelFVnLmEyTI rYdzX9psyyT/Yg== X-ME-Proxy: X-ME-Sender: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 3B313E4A41; Mon, 17 Sep 2018 12:31:08 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Mon, 17 Sep 2018 12:30:44 -0400 Message-Id: <20180917163103.6113-17-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180917163103.6113-1-cota@braap.org> References: <20180917163103.6113-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.25 Subject: [Qemu-devel] [PATCH 16/35] target/m68k: access cpu->interrupt_request with atomics 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 , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Cc: Laurent Vivier Signed-off-by: Paolo Bonzini Signed-off-by: Emilio G. Cota Acked-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé --- target/m68k/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index 582e3a73b3..4b15184a50 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -34,7 +34,7 @@ static void m68k_cpu_set_pc(CPUState *cs, vaddr value) static bool m68k_cpu_has_work(CPUState *cs) { - return cs->interrupt_request & CPU_INTERRUPT_HARD; + return atomic_read(&cs->interrupt_request) & CPU_INTERRUPT_HARD; } static void m68k_set_feature(CPUM68KState *env, int feature)