From patchwork Fri Oct 19 06:06:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 149239 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2917507lji; Thu, 18 Oct 2018 23:25:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV636RzpvBMMAZL8VBeSKaDu7MJi/CVYp2UxILZEoFttrdo0460+1btLZzCCfarr2yNbV6OEp X-Received: by 2002:a0c:e54f:: with SMTP id n15mr24977561qvm.242.1539930354041; Thu, 18 Oct 2018 23:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539930354; cv=none; d=google.com; s=arc-20160816; b=RmIqRDhReDhy6jaSleRClzyUT+KQ2OhR6eK/iCcb9D/ZXzvAV49VgBExzq2NN5/+0p t91p3tYCFUJgZ7JS4dNeNSo4coVG97yl6q8e537WZ/RjNzl2wHOIZSXbOe4K2oWTX3sp WKkelskwK4JVBNroQKccqYIHhpG0IOvmDCSNrmyoxVzgJZ+1AkUKCT2KGIDxgEYWxsnp D8IlDzmW91/7jGhjoQUAISXMTrOZVbEhLD3JJpSjgRw81nt/69xRSEpW2/Ky01U38P1o RBkBJji9f5K1xWXKZbQIKYC2XQaeMByGvPQpAtN6CXgTpExM/LEQ74vh6DGcxp032gUk kJ4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=R6mtWCX2I06Nt9gLSmekIxRYDH7dbVsVhYig7687N1E=; b=KeeHDu7CfnoMrnhZg8V96PaPEVgRp4LZbxdM0ROC6OEaULqEJnCr8pUR2mm9myvL+y t/wj5oDiK6EGtSYMsiqPrqjySZh32b+mOv0HNN0/t/XhzC5OAKjkwTkznODVMH5tEgNh CzcLAskM9X4I16tBa4cL38WPkNDEhK2wo01LlXaoNBeBQctzDBLobeXurUm5x3HKviJE bis8LjLCNOwaLJ4v9af8q+0Zlnfn5R6tKlfMfCqu78QrUvyisMmNO36OJtma1M4zBwKS o+bljYmwuU6cpzbBzQyldxWOyf1zNq120JRgdH1S6IHP1kLa3yEXXewYb+WvgQHwNL6o aOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jx7Q49Ow; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m12-v6si212088qkm.25.2018.10.18.23.25.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 18 Oct 2018 23:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jx7Q49Ow; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDOEL-0003MP-Jl for patch@linaro.org; Fri, 19 Oct 2018 02:25:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNwj-0004Tr-A2 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDNwg-0002nt-9z for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:41 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:38372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDNwf-00027G-QK for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:38 -0400 Received: by mail-pl1-x634.google.com with SMTP id q19-v6so12325465pll.5 for ; Thu, 18 Oct 2018 23:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R6mtWCX2I06Nt9gLSmekIxRYDH7dbVsVhYig7687N1E=; b=jx7Q49OwZ1muJj0gUevZ0KVVArqNkmsHH48SRZslF83Bj5ou3v21BjgCxGSGQO91wm wU9wQV0gtfadXCpXeIAaathV1Lh0giO26MyUfBkdY3v50q7CKLiUbX2dBXjaHoHGn4hf r5RNbpCz8p3X7gmxlQzrscagdOre/efW04Ct8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R6mtWCX2I06Nt9gLSmekIxRYDH7dbVsVhYig7687N1E=; b=qLpAWskiBh3m4t3eK7RM4edLoN7KdavQLcOSOk+DUNphEQOML4QmgzLHMLj+r/WJFH aanZlEHHmv3rPRKvDsJ8Thr4kXZGGekS3FDszlrmF89LF4TEpMUVKAQ5J5Ez0Ig0SiEh 4I8707vEGq2ISQBslD36GTVHYsjzissK98qnEI+Eq6/ZbEqdlFxBukphWC4Wt0dzuW4e vCmaR0bRvzfJ+dVI5JuV8nByah2FP/DrNjJKgMsaTRPLsJBcOZm5bZzk/BHNPGsM4btQ xPlFMEZuynYCkYtZRswKclvzlanoycHvIBYsPyhYOM/mmJlVyerq6lxmzBPowKZP43Uj u+4g== X-Gm-Message-State: ABuFfohDKV1ic8CK1bgzoxROhZLxsG0hJKTxMHuAAFjXDRPIVqwIlx3X kHpgzZTolEwbtbBKCtOFFcRWUkNs8kI= X-Received: by 2002:a17:902:9002:: with SMTP id a2-v6mr9574019plp.291.1539929231234; Thu, 18 Oct 2018 23:07:11 -0700 (PDT) Received: from cloudburst.twiddle.net (174-21-9-133.tukw.qwest.net. [174.21.9.133]) by smtp.gmail.com with ESMTPSA id q24-v6sm25609327pff.83.2018.10.18.23.07.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Oct 2018 23:07:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 23:06:44 -0700 Message-Id: <20181019060656.7968-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181019060656.7968-1-richard.henderson@linaro.org> References: <20181019060656.7968-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::634 Subject: [Qemu-devel] [PULL v2 09/21] 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: peter.maydell@linaro.org, "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Message-Id: <20181009174557.16125-5-cota@braap.org> Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.2 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)