From patchwork Mon Apr 1 03:11:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 161500 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4866452jan; Sun, 31 Mar 2019 20:15:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGODU315iTml5vd7LkZKlawTzU+m6vYGXCxXu1CRMxe/ElIeXQRUsIeN+TmdFzsdEVSqM5 X-Received: by 2002:a25:3743:: with SMTP id e64mr50942253yba.182.1554088515881; Sun, 31 Mar 2019 20:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554088515; cv=none; d=google.com; s=arc-20160816; b=q8QZXnd3mjSTtbW8KFbR4zeH3IShOFWeOVBdS4hY78YMA8TAi0j1yTdmHpAt4bPhAP 3Rjtemo19s5LOu974u60n97I9Kh7QUEmJodCcyiiUJ1JFiypnnsNyr3nKyyil837AKwA bmScNuzVGKq5qwrM5os5wKSyHyOU2sTxLMuUPLtRT2wEsFaD1bLxHeU1dwEz5BaiPUJv 2szx2cVFs4VxQIP37C3lF0o94I54e21kJQGov6gr//iQgTBzYZmJ9zWC7zdYvQmKYmVD Vhm/hsV38GNsGmneqTh3RZOJkfmVOwc0YNDpm5Z3DTo77/IdD3ZgiqgEZAKEMnqgp5o2 K5dQ== 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:message-id:date:to:from :dkim-signature; bh=ugxK8eULXBdhyHcUf6v17GiTsZ4C09/vJVq84MV6HpE=; b=KCIcgfnnlEXH3hunY9np38yuJi+IP9drMMMg/o2S8Q+G0K7H0MkbDYIVVRIFeSocwb UC2vuFoaKb51znv2L6nojqBn0vPrBR5nnAQYHf0va+beoXXmwYmzJEF1KvwvLU0tIBXW CZYIItWBZyAPVTU6bD4186Z9hOxfD8fm93y11b9tdt1PqUZhSnUFMBB7gP4ka29S69Ee zrlpbhOGEy/8WDqo++/7ILlioRqct+JOz4OIYuxTWI9p3nqYxhjLpTfAMOIYMlKfEFZy ngVQIz4n8b8GPdqalwbLjW7FhQ0Zyprqiuamj/lRY4UsSoQM1zZVqBNJQoxF+HkqjV5s zgmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Un+oCnGI; 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 f81si5513229ybc.60.2019.03.31.20.15.15 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 31 Mar 2019 20:15:15 -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=Un+oCnGI; 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]:33943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAnPn-0000bS-Bk for patch@linaro.org; Sun, 31 Mar 2019 23:15:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAnMv-0006jo-ET for qemu-devel@nongnu.org; Sun, 31 Mar 2019 23:12:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAnMr-0002oY-Jl for qemu-devel@nongnu.org; Sun, 31 Mar 2019 23:12:15 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:32810) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAnMo-0002nM-0L for qemu-devel@nongnu.org; Sun, 31 Mar 2019 23:12:11 -0400 Received: by mail-pg1-x532.google.com with SMTP id b12so4005641pgk.0 for ; Sun, 31 Mar 2019 20:12:08 -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; bh=ugxK8eULXBdhyHcUf6v17GiTsZ4C09/vJVq84MV6HpE=; b=Un+oCnGIvyCqPQOlHA8/FZbEpCn5hO0Mkdwm8mfQPxOjv2na/Z4EzGvbQ32JmoWUaj ZvBY0p50ztBo05X3xVwNhqVrShW2D1aSai9RTOq+UXE6WUEcejf6kUBtnZ2Ot2eTpcZr NctSFJS7BvyVpew2IXbQCyL6gZ+D/7BRYGB9HLw74yIugxVANzitSEyo4L2XI3Vzps/t S265GDTreHi7aO9QkLraj2ajDHjGbNclavVBPIco+5Moo5niIjmvS7QwTkPTxIlVYc3k ZEizELb+189/v5qotdd3cX6hp+Yjgo/W7T+JrePV+c8QAHKuAK1a95HyV4qCyc2D3wvy mIzw== 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; bh=ugxK8eULXBdhyHcUf6v17GiTsZ4C09/vJVq84MV6HpE=; b=jTr6oZPfkWZSKbEkUqxGYqobYVsCb3xZXog4xHy42nWcZfJ9wfYWRmt2Pye+a05Bgd ZuDU6fMdQq2xZBoR1IbV3h9JClg9DrwAIlxfRPYZAd3a9RB6JNvXh/rPWNT+P+GPkMyn Ee7dI46q5yz1a8lthiI+ODLn6gHdbygMBHywAGMSprQrzuHz3JOkF/NdvkP6fHSDwQy5 viBdKAD2XSdAldIvdre/i0T3d3gIhi7Aae0fh2Bac13bDmSKbGY/Uo6uPKg4ElXaEilB odsx/pnzDNatcFrCjPNAOvRThxtrxDLQBnN6DgWHJIUwHU4ixBrMeBy1KInuCJdeGdmv WD7g== X-Gm-Message-State: APjAAAVl03U9gVFESmdGosuiPXJ5YboHJfbI5+yzd+/PSGP0aA21GTGx y0U68nNTdyxbHf+Tq7mFsmXxi5N6Wam5cA== X-Received: by 2002:a63:c746:: with SMTP id v6mr6824874pgg.401.1554088327623; Sun, 31 Mar 2019 20:12:07 -0700 (PDT) Received: from cloudburst.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id c1sm11843954pfd.114.2019.03.31.20.12.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Mar 2019 20:12:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 1 Apr 2019 10:11:47 +0700 Message-Id: <20190401031155.21293-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::532 Subject: [Qemu-devel] [PATCH for-4.1 0/8] target/riscv: decodetree improvments 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, palmer@sifive.com, Alistair.Francis@wdc.com, qemu-riscv@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There's new support in decodetree for pattern groups. I believe that patch 5, or something close to it, was posted as an RFC as part of the original pattern group patch set, but this cleans that up further. r~ Richard Henderson (8): target/riscv: Name the argument sets for all of insn32 formats target/riscv: Use --static-decode for decodetree target/riscv: Merge argument sets for insn32 and insn16 target/riscv: Merge argument decode for RVC shifti target/riscv: Use pattern groups in insn16.decode target/riscv: Split RVC32 and RVC64 insns into separate files target/riscv: Split gen_arith_imm into functional and temp target/riscv: Remove spaces from register names target/riscv/cpu.c | 16 +- target/riscv/insn_trans/trans_rvc.inc.c | 347 ------------------------ target/riscv/insn_trans/trans_rvi.inc.c | 20 +- target/riscv/translate.c | 40 ++- target/riscv/Makefile.objs | 15 +- target/riscv/insn16-32.decode | 28 ++ target/riscv/insn16-64.decode | 30 ++ target/riscv/insn16.decode | 154 ++++++----- target/riscv/insn32.decode | 10 +- 9 files changed, 205 insertions(+), 455 deletions(-) delete mode 100644 target/riscv/insn_trans/trans_rvc.inc.c create mode 100644 target/riscv/insn16-32.decode create mode 100644 target/riscv/insn16-64.decode -- 2.17.1