From nobody Sun Nov 9 22:32:27 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1551986438531975.8003099255784; Thu, 7 Mar 2019 11:20:38 -0800 (PST) Received: from localhost ([127.0.0.1]:57931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1yZF-0005AY-Jh for importer@patchew.org; Thu, 07 Mar 2019 14:20:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1yC6-0001Nl-Tz for qemu-devel@nongnu.org; Thu, 07 Mar 2019 13:56:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1yC6-0002W9-5n for qemu-devel@nongnu.org; Thu, 07 Mar 2019 13:56:38 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:47076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1yC5-0002VP-VJ for qemu-devel@nongnu.org; Thu, 07 Mar 2019 13:56:38 -0500 Received: by mail-pf1-x42b.google.com with SMTP id g6so12126497pfh.13 for ; Thu, 07 Mar 2019 10:56:37 -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 g12sm8801973pgr.76.2019.03.07.10.56.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 10:56:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=8Qpoj351apEkpY9/mgEdL00Ikni8O4a8d1d83kx7GEU=; b=jhP5Re6Zozp32f3WUeJcvoeNcXRSAV+PI7QCbjxXEcgYMUTv5WU7MCXXNlbCI+d2Td ltzNksNSEmphQw2TwzznmzbsEhv645nOMzuT4vW56Wrvgzzisl3IhJ/th95guKyGFjdU IwwMa/eXtUywbm24SN1l054Dne7Nt2YJ/Jq6eoI19cAXuicxV+Fc4D2DmCWBDTkX0OTU c+KGOBAs/MmlsiLwUJbJFRMii3D8ruyzUP8DrlbixD9rg2vInV33gecIM5zZ/wK7JZo/ hl6gyCGdD+O6QpM5GKXNVMadVhI4UWZzv8EiqF1dEQr6QVPgklj91HM4vt50HBqSFMhR EJ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=8Qpoj351apEkpY9/mgEdL00Ikni8O4a8d1d83kx7GEU=; b=A9knpHlIyo474Z16F5755WoLRHMWuF+mXol4hWcKYxi5wd6U3MLkHzHgE/ibq4DVN0 /rdSftaY1Kt+7gKVDBu6T6UATeoOjltZBDUsz/H76XOgEQtecr+x38cGn4fybAJhT+3U cW+Hg4D33LMRaUZNW0lCjAo5OF1sdYc82UOVOCGwiruu4r22w8izG+aKMVDnpX2JS/ms aADx0r7HvQzsXLxiPhH8PpTIBR9hxET43oxXSXs5I647OfClZ8ciVgpDPBSoUGZkTvUj b59/M3i3R0mAj2Mk6m5NhUqhyxwsMCWi4PT9G7yYcNzv0dk1PdSLsie82Poie4uVkcrd 2FPQ== X-Gm-Message-State: APjAAAWVlYDL5q5pGTeWfg6IZ+q2PWyspgUILrbTyPWNPCGPcjdZAlcy Xq6wY7epU1rdnWS/IFLfz+/wKh2bpvM= X-Google-Smtp-Source: APXvYqyibai4pfNhuSzuOHqcNM7iEouRf/pI+BcRy5+1y7g0Q+vyv9wELmnh3zTtxDXbPgBWo2Ef7w== X-Received: by 2002:a63:ce:: with SMTP id 197mr12576262pga.212.1551984996558; Thu, 07 Mar 2019 10:56:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2019 10:56:20 -0800 Message-Id: <20190307185622.29026-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190307185622.29026-1-richard.henderson@linaro.org> References: <20190307185622.29026-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42b Subject: [Qemu-devel] [PATCH v3 10/12] decodetree: Allow +- to begin a number initializing a field 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- scripts/decodetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 57d4c9297e..eef32f695f 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -589,7 +589,7 @@ def parse_generic(lineno, is_format, name, toks): continue =20 # 'Foo=3Dnumber' sets an argument field to a constant value - if re_fullmatch(re_ident + '=3D[0-9]+', t): + if re_fullmatch(re_ident + '=3D[+-]?[0-9]+', t): (fname, value) =3D t.split('=3D') value =3D int(value) flds =3D add_field(lineno, flds, fname, ConstField(value)) --=20 2.17.2