From patchwork Tue Mar 12 17:03:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 160173 Delivered-To: patch@linaro.org Received: by 2002:ac9:18c7:0:0:0:0:0 with SMTP id i7csp13254210oce; Tue, 12 Mar 2019 11:10:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa8ln2mh8FG6izZsMMb5UvQd0KaZAEP18V4pAHnQusX4HS0ndVrN8a6o138bwxWJk/Xl9J X-Received: by 2002:a25:8106:: with SMTP id o6mr31498344ybk.53.1552414203152; Tue, 12 Mar 2019 11:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552414203; cv=none; d=google.com; s=arc-20160816; b=ntI7M1qIouLqNkS+zIgXKs1xWQqgBhxskO/89U9L3suQP4PCtpGXLAgKi1+9dRGKI5 dw9S7Mr4rfpaa/pDIq3oUBC9ive1XHW6iPS75bmpPT6LyfLBTksA+340g5k49T9AJIX9 Rs/iz0MYxjBs5iqiaDjd1qNwOewj2nOrvlIWFlcH4JpcSDQPtohNoVhBITs2ZkP3CoQZ gADIFF5tiAXF2X84e4SDpuspkIStcBAhGsumfrXfbFuxrA/0tn3OJB+Ukyhq6tbeNXpg jvg2CyyawMg9hIpws3oVNgUdwLtXxFAcWAgzxlU9IuRAaIF4xwUqiHPVM1GKfyzeaztv rjog== 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=dJ9V0cdUMTbTLS+jTfS4ibWwVyEFxtj+1fJtRE1MNSo=; b=Va6jhiuUwTtqrPxp0iGzhfDgUXBOzzRJ0Ci0VANa/gikqQnlGQ8GacgkJKr1kM8B77 W9561ac4Rca+pGWsr40THVzFj5/lOvT/JqH4+KDLTzxCALoVtRSjfz3BNNykoH95CpZX IR5kwIHnk3DgbstIPOYDljAEFzZEvpZFHa8nuLHLgRxUTpR4NI0liB6qizJYQXxA9Gn3 7X+bFAU8B4wyEiSmd4Mu/rU3fckN98ZWUTBS+TV1mLglq5vZJj78vLcSt+auuH5Dt8Ai RQR6I4I0o3m/geiJ0vsddWB7FwMkXUH3The4D8889GEpcQcHMA/gjcbpNQxLSUN20lWe 5Lrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eKzocNzO; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b134si5261715yba.51.2019.03.12.11.10.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Mar 2019 11:10:03 -0700 (PDT) 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=eKzocNzO; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:57041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lqk-0007Om-JO for patch@linaro.org; Tue, 12 Mar 2019 14:10:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3l3N-0006Iy-9R for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:19:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3koa-0001BD-H5 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:03:45 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:42551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3koa-0001Ah-9Z for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:03:44 -0400 Received: by mail-pf1-x42c.google.com with SMTP id n74so2251745pfi.9 for ; Tue, 12 Mar 2019 10:03:44 -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=dJ9V0cdUMTbTLS+jTfS4ibWwVyEFxtj+1fJtRE1MNSo=; b=eKzocNzOnmi0zgTPOFgvCw6fVgbHCnHfkc/dC/f++AyRb7Q7Vx3M1jj1s6Pp2tMiF2 iybNRqafdsIJuU7LLHrEdlpKuD9CcVfMW+Pv/McsmwIRRQn0YiaKEM4rChXa1d/9DD29 nius7+3DfzLwBluNNkFVfX55l5D2Tc9dbMErHYWLyqcetpbvbPTQrbGCJ3iBpTnLcC+s OxIxHpPm4+YfA6qlmBThKqZbJDiRYBCcJ9ZpTWpBeFhUIdyM/qKLqacKl/GoRVabOLwL u+PkKScvgaNjYsbmlW3vFRhLuyXg/ubdH+luPDdvVOTOBik0A/0w9a7ASJijCNQ5UzZO +Qmg== 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=dJ9V0cdUMTbTLS+jTfS4ibWwVyEFxtj+1fJtRE1MNSo=; b=bru9GO8fKvMR7CyOdumemSC2+4xrnsfLvM1bhUhzC93Xs1mdI8mECK/Dk6Ii2nRaQx kLPghm0sYFyS+kAWfuaC6hULckU7pe5moMuse5Pv0kQfw5OjVIow12WPM2CqCRRrwCGC gLyd8cYdRK75c6mrCyAKKjFF4IS1AC20clQgloqRiHhK/rAGULviRrjYs+o0WIQ2842m jytS5rX9np2DiqIJ3LhQ8kR87Wz5IxngzRF6PCGwFZ2F3HI5tykbAzxcFHggMjSg9KHQ aXIRVs2UhIieBOb7okN59vMWzKKMtN563W/TWaV/8C8YXXFsKYi8hkpSAD9Q55uGsKdE GJDg== X-Gm-Message-State: APjAAAUaXHUnjjsJaI4j9QQS0s+HZTEJErPE0EC1HnnL9bk2kgZ1kApR mX+mFNIS+8JPuDSyK32Pe1ar/N7RlkQ= X-Received: by 2002:a17:902:6f08:: with SMTP id w8mr41112739plk.5.1552410221751; Tue, 12 Mar 2019 10:03:41 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id v22sm17514265pfa.49.2019.03.12.10.03.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 10:03:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Mar 2019 10:03:26 -0700 Message-Id: <20190312170334.14005-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190312170334.14005-1-richard.henderson@linaro.org> References: <20190312170334.14005-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::42c Subject: [Qemu-devel] [PULL 04/12] 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: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= 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: Bastian Koppelmann 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 diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 33e32ee87f..e26d8253f2 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