From patchwork Sat Feb 23 23:29:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 159139 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp477505jad; Sat, 23 Feb 2019 15:36:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IZuFRlUxh6FQEslsI9ws0xgNPc4mx/ct96hi6yqAXR10fJxx3aKQ5RDJG5qsBfTuUTQoJrO X-Received: by 2002:a25:3341:: with SMTP id z62mr8802778ybz.239.1550964974137; Sat, 23 Feb 2019 15:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550964974; cv=none; d=google.com; s=arc-20160816; b=SU3fE/I6vX7fS57KxGF4TRnkS6g2s023I6Lo0MROb1l7lWX8Vkt+vbO2mm3VVn0jBS zveStBhX9JW75Z4pLZdOHQzDjVpRcSk6MsOjeNJI6rB9BkGAqgyGi3PphyGAQLZE8Weq VOJSrYbG7n9/xqhtF9Q/9RZhKXEaKy1qrJbW+/aBQf2ZMluYALpNR7oTERdLmUxpHfBu t/VmbZ58UWkqi5BAUrIk/PYLEHJJdHmhm1QQmXm/yzyyYEQ+A/+BMjH+yvXsTvevt2nm tqWaTvaQyxfT+Xn2ZDrrg6FNpYew9XZVD67HmsDrlePjirgWvw5TBJvcRgzO7KCCAcST 8I7w== 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=v8huWsBakhsX960GFeyqPdvKD/KHeC+sZiyDbO2s4Ps=; b=H7Kmjobk1heABy2gTWCLElEGQi3junYuqGvSP8FntPuTonpfAahMCYlVC8lzFGi8pz 64WDhYBrZfOVM7+57jVpzydzxMLhlxzWzUJwpjFEDmxsS+fynCISaVkDnD8ePjZbo42l irKBlP72jOGuhNXOqWrYseu54h1x9ktCWTiMyl9D0BoQ0AquL5tgv2nDhq60q7EspgCM 75CsN3ILhLX1ijvXNbqiC1j6/eYs/Phvx7msDNOLEfTuu5/opVdRQHgMkloNgbf3dSsO tNZTzMKsYsQ7bGb3JHYxOTpXHhOG86mXOos92MEXyr+ynMauf8Ei9IE3r7waLo0zve3j NUVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=THgSBQHy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s9si2997232ybp.433.2019.02.23.15.36.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 23 Feb 2019 15:36:14 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=THgSBQHy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([127.0.0.1]:43867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxgq5-0003f6-9b for patch@linaro.org; Sat, 23 Feb 2019 18:36:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxgkA-0000P3-Bd for qemu-devel@nongnu.org; Sat, 23 Feb 2019 18:30:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxgk9-0007M0-DV for qemu-devel@nongnu.org; Sat, 23 Feb 2019 18:30:06 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:41699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxgk8-0007Eb-U6 for qemu-devel@nongnu.org; Sat, 23 Feb 2019 18:30:05 -0500 Received: by mail-pl1-x62c.google.com with SMTP id y5so2756119plk.8 for ; Sat, 23 Feb 2019 15:30:01 -0800 (PST) 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=v8huWsBakhsX960GFeyqPdvKD/KHeC+sZiyDbO2s4Ps=; b=THgSBQHy10BMP4i0rsOOEaYKpoR+jyWcmvx+IsSFXchKJEDqDa6NSLkjxtkR1sO/Wh wK5PNj9h+pIlMDJhvO2BJpN/t1xOp5sLGXPm4ltf8oWqkihHTMuRTnmDT5EIx+5esoGx Cr+aVR9r85hhuevCY4pK3BNae090aV6/kFqh9IVD6Q8FdBrNQbfHE+YJzvL+FXLuS2qg xoMcBMZWaKlQbxGznROpxw1Yuu0WnxVthLeqIZNZ02/7dVxwYifyNUXnlK9xcF1tatXY KqeQQMJhH4bXRQNwmX1fgWUn833kJa2XWUnjlBOlixYlbaeHjvr8hDWSAQnhapvriBRk VFHA== 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=v8huWsBakhsX960GFeyqPdvKD/KHeC+sZiyDbO2s4Ps=; b=c4QrakLHpby30bNCMbYtPgJTCAsr1uET4Icaq8xeJFCOqSTlTVkM4o1oq3sl5gjvjS 22qvq5eOh3vUcWZT9TOkTnSaah4ccWMCI17NKulpXwKqhHNV5CWSbjcWTIEtxQ4FYXbP YXs8ZGSq6Ti1FA/v5uHPoGlpYkw4JPWxWFNAxVtGFfkXGi3ebVW8lxGT+HU7fvIWpe+l 7xwVvZQXY3FaoSQNJ3OobnFaPeToUnIBrIvAqvFDd1T0efX6xo2DKtrZl+1cz+x9vZRP eePRX/9mof+mopBhbaB7/EgZP3reK2Z6sQ0WXq0rajLFLzgE/hDAz/oq8bLRoNuM3A9+ 4AFw== X-Gm-Message-State: AHQUAuZ4W2g8dLRVHfdV3LXb+nz/dPvTuzJYPVlXLdfNzu0UrSPiozw/ ikOsWvUtiPFtrZeXskhu0ft0XkUQOU0= X-Received: by 2002:a17:902:ab8f:: with SMTP id f15mr11463644plr.218.1550964600613; Sat, 23 Feb 2019 15:30:00 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id n1sm13214842pfi.123.2019.02.23.15.29.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Feb 2019 15:29:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 23 Feb 2019 15:29:50 -0800 Message-Id: <20190223232954.7185-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190223232954.7185-1-richard.henderson@linaro.org> References: <20190223232954.7185-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::62c Subject: [Qemu-devel] [PATCH 3/5] decodetree: Ensure build_tree does not include values outside insnmask 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: kbastian@mail.uni-paderborn.de, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Reproduced with "scripts/decodetree.py /dev/null". Reviewed-by: Eduardo Habkost Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- scripts/decodetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.2 Reviewed-by: Bastian Koppelmann diff --git a/scripts/decodetree.py b/scripts/decodetree.py index ba203aeccd..fb9a0ab3ad 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -784,7 +784,7 @@ class Tree: def build_tree(pats, outerbits, outermask): # Find the intersection of all remaining fixedmask. - innermask = ~outermask + innermask = ~outermask & insnmask for i in pats: innermask &= i.fixedmask