From patchwork Mon Sep 17 16:30:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 970702 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="Z7p+Mkn2"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="d84T6LC3"; 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 42DX5Q6hSNz9sfR for ; Tue, 18 Sep 2018 02:44:10 +1000 (AEST) Received: from localhost ([::1]:36501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1wd5-0008Eq-UK for incoming@patchwork.ozlabs.org; Mon, 17 Sep 2018 12:44:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1wQo-0006Qm-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-00029J-8G for qemu-devel@nongnu.org; Mon, 17 Sep 2018 12:31:26 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:59901) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1wQk-0001pr-VQ 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 B87B0540; Mon, 17 Sep 2018 12:31:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 17 Sep 2018 12:31:10 -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=3eCypmL4ZtPLbx fRmPXjbBSrCYOL5Wg2FF9S+zXIj/w=; b=Z7p+Mkn2BOiJtYhQGGs586fJuCffsb InScqRXETLR5QCM2MgO+x3m3tgSeSKlKnp1l5VD6Gn63NoOm4gvn2/DAHclVClo8 WCjt1V5vOtjSuAw3K1Ly3ozgOpAfoM2T3M6XI1qldteOXXo5zSN3uEdvrQL7kQB8 zha1awqURPrrM= 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=3eCypmL4ZtPLbxfRmPXjbBSrCYOL5Wg2FF9S+zXIj/w=; b=d84T6LC3 0tKNkv+NH0C+qoDYJEeOJQVftlNf09Okv3mJLy5hU5+j1m2b0wZbOFPN3k9aSl+5 /Tv4tKqtP0xS0QD4zwyk57Lr8SDOH3eFG8zmU0Ll052dx76EqKY6hfyvnw0x/H3N sr98/Ukkype6XQ90wrDbfcFxcZ6tmIXJtZ9CwmKTcYdkBg1NiTo91goempmf+7rr cTYGVGsMuCt626UcGwNqdGQcbIlEysINc/S0IlyFmbwN7PVU68x5+qH5cdkCfNFe pCjThkJxVtIMNAsb+8+A01WcxwWULg5gKuXgkY1Hsq9qq7+OTeRndePVHfHqJE2E JzxkyHsWTTYPqQ== 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 F143DE49C5; 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:47 -0400 Message-Id: <20180917163103.6113-20-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 19/35] target/moxie: 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 , Anthony Green Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Cc: Anthony Green Signed-off-by: Paolo Bonzini Signed-off-by: Emilio G. Cota Reviewed-by: Philippe Mathieu-Daudé --- target/moxie/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/moxie/cpu.c b/target/moxie/cpu.c index 8d67eb6727..f25144242b 100644 --- a/target/moxie/cpu.c +++ b/target/moxie/cpu.c @@ -33,7 +33,7 @@ static void moxie_cpu_set_pc(CPUState *cs, vaddr value) static bool moxie_cpu_has_work(CPUState *cs) { - return cs->interrupt_request & CPU_INTERRUPT_HARD; + return atomic_read(&cs->interrupt_request) & CPU_INTERRUPT_HARD; } static void moxie_cpu_reset(CPUState *s)