From nobody Sun Nov 9 23:01:43 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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 155241280864442.2637027593596; Tue, 12 Mar 2019 10:46:48 -0700 (PDT) Received: from localhost ([127.0.0.1]:56674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lUA-0005Mb-G9 for importer@patchew.org; Tue, 12 Mar 2019 13:46:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3l3K-000633-Ph for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:18:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3koy-0001Rk-Lf for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:04:09 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:43789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3kow-0001GP-LA for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:04:06 -0400 Received: by mail-pg1-x52c.google.com with SMTP id l11so2267095pgq.10 for ; Tue, 12 Mar 2019 10:03:51 -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.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 10:03:49 -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; bh=juWEfS7NZ8OWLNIMee0mKuVA5Db/G1PLvQaDN8eMxSI=; b=JVwXhhXbMQK59lA5k50B2oIvhlkrTp0fNOSbHMsKRQ6df9gpmqydRRHr4VDd4LR+cY oKQUbayT6jPjvKQ5uJuTsrQBoFYKIEJ6QrIBXkE0EHOxGNv4+xDxrPjdwdn1Jn7BpXh9 KvaHE3zImN1xTYtyfFgNjSQjYF3yBhDgYBIDJ38MQr2N7ES4STWXgmjXV4+JEB0i8jW8 iR6uhbcVU8IJVIM78F74SR5BsQCYd60nIdDYhj+PSr0EVBMxByHUsfXie76+EET6hcCI FB0g2E7kug1L/f5AOYqhKmkNfE6MSFg/2eSg2nwwlx9XydThQmeEjAu18B+XpanYP+yG GSIA== 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; bh=juWEfS7NZ8OWLNIMee0mKuVA5Db/G1PLvQaDN8eMxSI=; b=cSyreJ96/sYeprUNKUj0pHsDZzGgwbwRRaCahu4L3xpylgw8DJm/uEyZ2RF26tuW6M dkLZzzTH708kO3emWbkeuKfTTmyZmuGe4Oyc+zbXiv8qByZsHP+1xsQH0BIf2a4AA2X1 cdkr40d8E9vY28Dx67sBy1HD067kvHvxUAWPHP9CPZTRT007hufWo5UmhdFO+ch4QkCF bhe6pzHIdpuF9L9ZqjfsvYcF9fIDLhb6dtC9afyiF+QElVq53OuVns650KjNC4H6UJ+I rTWjl48s2B03kGJVd/H8gciAvObPtDHwMBWlb4lii9WlJNHjktmbx1oRJyfz+9PtVhFq ioZA== X-Gm-Message-State: APjAAAVO5B427YhiDuFc/oWwdzGbBfl0WqOK4I11O6sHyiNzj29uzT8I QM9K+Y/8bllplplq44GCsZgvdYhl29U= X-Google-Smtp-Source: APXvYqx98tlCPjMdY3y/lWMHQ4iOKhWlNXmjLtgxhsbh3EcFeVDmF5ImIAZj7U+v61C/h14MaC4NyA== X-Received: by 2002:a63:4f61:: with SMTP id p33mr36093394pgl.303.1552410230169; Tue, 12 Mar 2019 10:03:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Mar 2019 10:03:32 -0700 Message-Id: <20190312170334.14005-11-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> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52c Subject: [Qemu-devel] [PULL 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: , Cc: peter.maydell@linaro.org 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 6e7ba278be..f6f58e2fec 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