From patchwork Mon Apr 1 03:11:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 161501 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4866483jan; Sun, 31 Mar 2019 20:15:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyW/D3G/gO+vP/fRm36SkAwlKtQzCWVaWsg/ct23Uww1woy8LcLJ12WGmFo+qvHxwgcRmeZ X-Received: by 2002:a0d:ff82:: with SMTP id p124mr52008464ywf.409.1554088518694; Sun, 31 Mar 2019 20:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554088518; cv=none; d=google.com; s=arc-20160816; b=CaS6AFHJnUXUbsZaBZDnqRpdRaZTD0ovK9MQ8NE3HuaSljFMI1w9D3EOh7OTBAbklc cX88oOngmfSkKxJXZiLfNLpJYLYMHduUj0FHBXdcgOltinqzrT4TVqr/BYVw6WnQ6BlT NoROqhk84lUEXdSuWqgfdSbCsMBcKMdHxpUR6Luhecpa4YOB7TwwHqUStXPXFQSXhz2B 0HriwDeDMwGPrVhmaFkq2gnNsuz9zDxOFgcmJ6o8K93Ff+Rsxp2m67MyQv/5gCLwXgP5 5x7FCxymG66vULlHjp5xKFJUkp1Diljur+9JROX17DQzcmvH2Lc9BdSeZp4v01VO0Dqq oJpg== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=ldf8BOBEYaEPwE6SNRadbgy/cKtsZyA6qEQMWTLJRXo=; b=EACnTMgbd4Qklgr4J0i0mZzCMCXhbfAUAeS/BP7rVxP/TkXZcRIvRUHpdWfqqup9/L Crg5cL7jxOxph3v2cULOernA/iL5HpSihs8N5S4Dh5cfXIhMEfxP2329ymO5HdNfSb85 5eSmlYBSigP9OgQb7le6GR5pJ//W3vIqvn42d7nXtaPGiZqK7+Dq94znt0LPCZQ4BBF0 yQJQQKvWiya0Aj4Uwmh4/5IZoX6XHr9TOE1Q9ug1GR+/Gcaq6V5Zl2TORBI/EcUJSZE5 nDJCiI12j9kR5OYWfM9xgsfIQrUk2dPb+A9b/itnyMtc4LM7W2PWLcpBGypk7vzM0J7i O4Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C42HRDUu; 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 n5si5313906ybb.220.2019.03.31.20.15.18 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 31 Mar 2019 20:15:18 -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=C42HRDUu; 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]:33959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAnPq-0000gP-60 for patch@linaro.org; Sun, 31 Mar 2019 23:15:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAnMx-0006l2-DQ for qemu-devel@nongnu.org; Sun, 31 Mar 2019 23:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAnMv-0002q4-H2 for qemu-devel@nongnu.org; Sun, 31 Mar 2019 23:12:19 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:32770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAnMr-0002o2-Pe for qemu-devel@nongnu.org; Sun, 31 Mar 2019 23:12:15 -0400 Received: by mail-pl1-x643.google.com with SMTP id t16so1860735plo.0 for ; Sun, 31 Mar 2019 20:12:12 -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=ldf8BOBEYaEPwE6SNRadbgy/cKtsZyA6qEQMWTLJRXo=; b=C42HRDUuoHU68BYcw1+t98DCrTpIIf4ZfPz80bb6hCWnjllckksce+rNvKiEYBZN5m 2O453wURXsQMh6z+ryrHVf/aatu6AWBcX3elTM+zolosMkqZVEapg4+76iJILiN6/vrI Z92foNiPo0YfvhoFnNZiqfG6wMXWFTlQiJZfGz18bjxPOev5Pgo/GZR98IKnjpQRkaGI SQat+TJGecKfXhgdHm51NPkpfiYK9K79PDhZpngu7bRdun5WsusYUyY9O7qe9wm9NzTQ BOgll4d8iEoag1GNlCDIik+KKLJ5xw5JSA6KGwM+Zcy+OET9mszf9u20ZI0IULBWEgTd qXNA== 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=ldf8BOBEYaEPwE6SNRadbgy/cKtsZyA6qEQMWTLJRXo=; b=PPLM/5N6pQNo+1z+NltFAs7cCvnptP6ECURs3MHmNemZQwj3lejj70ttd9jjQ9Y6M0 ymWEjOMA5+qxcS0KjT9yuXsIRs1R+M7iqJ2Trjl65TTyxvHQcYK8c2iVCjzTPgf94wjf kaNPDP7Dq21VdQequk/vdVh3+8r1d3p6VtMJvC+v4688KLDR1v/DsW73ER9INU9nt0rG 3gTrCy4dySIjbDbCpgeVDXk1ul1JxcIgTrKgpGYZfV5lttQjSUJdMvJx+PNG+wKENQvg RjJxqtPgRCEwvvG6qlzlQ/nk0JFpEpbQICEFLr9jBvQDg999Wv1wkTkrohWldQhVEUIu 85dw== X-Gm-Message-State: APjAAAUeSboduBSIJK58gsMm8mAASP5goqyy6l7ABhyeztTng8qWkKaf BjX5uv57w0Lh6zjIzt6lnjRmzt7nNZZfJw== X-Received: by 2002:a17:902:b948:: with SMTP id h8mr32760111pls.39.1554088331042; Sun, 31 Mar 2019 20:12:11 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Mar 2019 20:12:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 1 Apr 2019 10:11:48 +0700 Message-Id: <20190401031155.21293-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190401031155.21293-1-richard.henderson@linaro.org> References: <20190401031155.21293-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::643 Subject: [Qemu-devel] [PATCH for-4.1 1/8] target/riscv: Name the argument sets for all of insn32 formats 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" Signed-off-by: Richard Henderson --- target/riscv/insn32.decode | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Alistair Francis Reviewed-by: Palmer Dabbelt diff --git a/target/riscv/insn32.decode b/target/riscv/insn32.decode index 6f3ab7aa52..77f794ed70 100644 --- a/target/riscv/insn32.decode +++ b/target/riscv/insn32.decode @@ -34,9 +34,13 @@ %imm_u 12:s20 !function=ex_shift_12 # Argument sets: +&empty &b imm rs2 rs1 &i imm rs1 rd +&j imm rd &r rd rs1 rs2 +&s imm rs1 rs2 +&u imm rd &shift shamt rs1 rd &atomic aq rl rs2 rs1 rd @@ -44,9 +48,9 @@ @r ....... ..... ..... ... ..... ....... &r %rs2 %rs1 %rd @i ............ ..... ... ..... ....... &i imm=%imm_i %rs1 %rd @b ....... ..... ..... ... ..... ....... &b imm=%imm_b %rs2 %rs1 -@s ....... ..... ..... ... ..... ....... imm=%imm_s %rs2 %rs1 -@u .................... ..... ....... imm=%imm_u %rd -@j .................... ..... ....... imm=%imm_j %rd +@s ....... ..... ..... ... ..... ....... &s imm=%imm_s %rs2 %rs1 +@u .................... ..... ....... &u imm=%imm_u %rd +@j .................... ..... ....... &j imm=%imm_j %rd @sh ...... ...... ..... ... ..... ....... &shift shamt=%sh10 %rs1 %rd @csr ............ ..... ... ..... ....... %csr %rs1 %rd