From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0DEAC3A589 for ; Sun, 18 Aug 2019 06:41:11 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 797CA2146E for ; Sun, 18 Aug 2019 06:41:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DTPMFj2A" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 797CA2146E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzEsI-0006M6-Bo for qemu-devel@archiver.kernel.org; Sun, 18 Aug 2019 02:41:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36379) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzErF-00056I-2W for qemu-devel@nongnu.org; Sun, 18 Aug 2019 02:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzErD-0000jq-TQ for qemu-devel@nongnu.org; Sun, 18 Aug 2019 02:40:04 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:40181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzErD-0000jY-M5 for qemu-devel@nongnu.org; Sun, 18 Aug 2019 02:40:03 -0400 Received: by mail-wr1-x442.google.com with SMTP id c3so5420708wrd.7 for ; Sat, 17 Aug 2019 23:40:03 -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:mime-version :content-transfer-encoding; bh=Cno2ECwsR7ktzkhE8ZG+zagDyVBGqxsGXUAhcQLNUik=; b=DTPMFj2A+44bjtg2HVYU0cK2uixKl8WOdGJFpOc92WL7gIgQ647LlqbG17Rk/yJQlH neYUOHhvvGQIMi5TKhRI0JNCSYGoENGY5x0jAgwQ6Hf9CxAhL9xermGe8g3H2PQIT9fy fiY8+Y2udJZs9gvICiOWIfP1sJBwnCE71pEzKLjNIR0gnyybmvW6Nkj0Fb27C2oZwmDI 4Fl+R92ipQMA//vgG8TZhhpB09d/EVbvoD8krLXfMcpeehna/otl0Ma2FG0FcQobyFYF FxwyaRpugNBvPY7svzr8wQlAIID6Lur/alRz1tlUXzcnxddDJOx/97husV8MwkcSaHPs 6CiQ== 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:mime-version :content-transfer-encoding; bh=Cno2ECwsR7ktzkhE8ZG+zagDyVBGqxsGXUAhcQLNUik=; b=YlA7vGWU5LIfAp7IUF0xSzU6ShwqaNofq9X/nOBTiI+Hce7kl8sXUO3zADOln2QUot 8m9MCRcMMlJ58+JixG88Jz8CiDa81b3/xVHXtj0kH/2g79qR1Ak3NGaoBazu+r9q04R2 2dw/1M4pRhR5I3AnG3PqW4+x+3ny/kYgjlagmMeB9mbKPqfBRbgJf86IPxBIBpGDN+MP yHPe1ysK7PkFEtj1BuLaNm1Oqn3ztYCgExC8hWzCInvUrS/pVn2HmbKq4fdXoHsZlwuR WXWAEcvqzLero1i6tz775oLixlmDq5iN1KmWkrb1NTocYLDlOipHIFiWZf44/qAV+jOT ZXSg== X-Gm-Message-State: APjAAAUaUMPM/yEE7P9XxpewLksEbRWo/5k+U/jeR4B204Mrd0v6Xz7Q ElsFjVV6cmdbuzjFhCOfql/3FDZD5MY= X-Google-Smtp-Source: APXvYqwGRMkAuOjYoyDrFwzxZyfjpTxiuCafEzdImlnPtDUvjX5wsCVWuOk5HUGaP2V8LEW20P0e8w== X-Received: by 2002:adf:f7ce:: with SMTP id a14mr7337741wrq.332.1566110402100; Sat, 17 Aug 2019 23:40:02 -0700 (PDT) Received: from cloudburst.Home ([2a02:c7f:a69:1700:8897:9507:94c2:b98d]) by smtp.gmail.com with ESMTPSA id r5sm9015435wmh.35.2019.08.17.23.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Aug 2019 23:40:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 18 Aug 2019 07:39:56 +0100 Message-Id: <20190818063959.14533-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 Subject: [Qemu-devel] [PATCH v2 0/3] decodetree improvements X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Changes from v1: * Drop unintended hunk from MultiField constructor. * Typo fixed in ParameterField documentation. Blurb from v1: These are split out from my decodetree coversion of the AArch32 base instruction sets. The first patch has been tidied per review from Peter. I now diagnose nonsense fields containing no bits. I eliminated the unused integer argument passed to the named function. I improved the documentation. The second patch is new, a suggestion from Phillipe. This then enables the third patch, tidying up the existing usage in riscv. r~ Richard Henderson (3): decodetree: Allow !function with no input bits decodetree: Suppress redundant declaration warnings target/riscv: Remove redundant declaration pragmas target/riscv/translate.c | 19 +-------- docs/devel/decodetree.rst | 8 +++- scripts/decodetree.py | 71 ++++++++++++++++++++++++++----- tests/decode/err_field6.decode | 5 +++ tests/decode/succ_function.decode | 6 +++ 5 files changed, 79 insertions(+), 30 deletions(-) create mode 100644 tests/decode/err_field6.decode create mode 100644 tests/decode/succ_function.decode -- 2.17.1