From patchwork Tue Oct 9 17:45:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 981429 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="h5ZIPO8d"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="IT+NKpcV"; 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 42V4SP6d86z9s9h for ; Wed, 10 Oct 2018 04:47:32 +1100 (AEDT) Received: from localhost ([::1]:53131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9w6T-000378-Bq for incoming@patchwork.ozlabs.org; Tue, 09 Oct 2018 13:47:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9w5b-00035t-Qg for qemu-devel@nongnu.org; Tue, 09 Oct 2018 13:46:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9w5W-0005nP-S1 for qemu-devel@nongnu.org; Tue, 09 Oct 2018 13:46:35 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:51391) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g9w5V-0005hC-9I for qemu-devel@nongnu.org; Tue, 09 Oct 2018 13:46:30 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 76719DDA; Tue, 9 Oct 2018 13:46:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 09 Oct 2018 13:46:08 -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 :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=nYzLrBi+6IUI1um7n2y57xEkcc9dZ27eqVYitngjqzo=; b=h5ZIPO8dXLto 4uHkww98Jm7xroHEam7XyCZW2lSt7trjj2372M778M3grEPrO1TmfacduSuJJcvY PKSf4+YZcFm7yk3HREo/JJLpP278XXyR1FxWapNaYBF7fIntDo2w70aSeNFoA2Q2 yuRnr8D4Nzh1YyYlcGc9COhQv5yn2Qo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=nYzLrBi+6IUI1um7n2y57xEkcc9dZ27eqVYitngjq zo=; b=IT+NKpcVncfb1IPP6nQ7fb7Hk0fWh2Gx7mnzJ9R8odQbbmuWHOFblVj4u WafT1qRad7QQvsUb80Dji+ugkNnl2226d0h7FueJKKeQ9KQH92/PtkFNjtqb10YI ou3q6ivoXIah0MHT+hNM6RnqpwUYgcaQCN1JQb6F0tF9TdcuJrLjxMHLtSzoXGZK gFDRNpRrI1zr0ct85RViclcyCwHwTeXWWqGcua7ip35JSeXB1jjZBzqGM5Xoro2s gl5S4Y11YaPkfpMxnhEGXCjoZfrV0b4H4u+HUN3aGAAjub//zDI+gsUDKq3NINUZ tM4ubkTx/Hxo45Q3bBzm88ad9dv6w== X-ME-Sender: X-ME-Proxy: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id ABBF3E4625; Tue, 9 Oct 2018 13:46:07 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Tue, 9 Oct 2018 13:45:55 -0400 Message-Id: <20181009174557.16125-5-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009174557.16125-1-cota@braap.org> References: <20181009174557.16125-1-cota@braap.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.24 Subject: [Qemu-devel] [PATCH v5 4/6] cputlb: fix assert_cpu_is_self macro 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: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota --- accel/tcg/cputlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 502eea2850..f6b388c961 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -58,9 +58,9 @@ } \ } while (0) -#define assert_cpu_is_self(this_cpu) do { \ +#define assert_cpu_is_self(cpu) do { \ if (DEBUG_TLB_GATE) { \ - g_assert(!cpu->created || qemu_cpu_is_self(cpu)); \ + g_assert(!(cpu)->created || qemu_cpu_is_self(cpu)); \ } \ } while (0)