From patchwork Thu Apr 25 17:26:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 162855 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2215288jan; Thu, 25 Apr 2019 10:28:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO121vwgIYAw3sEzeEV2hnc6u+5JAPdUPLTu4aJ14c+y9/Cwfj7eixtNXNtQHH+fHTWi1e X-Received: by 2002:a1c:a384:: with SMTP id m126mr4035649wme.99.1556213310356; Thu, 25 Apr 2019 10:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556213310; cv=none; d=google.com; s=arc-20160816; b=MJ0COLgX34s+AuoIExKztrRqX65IkSODWc1POyEUnChPo3Y3uF33FGLgMhcx8Nv4CR uWMh7biUFbdQOrlRCX3+8hT3X6YmvlmSRFCS6gCJ1X4/zlU9fBGAD+jAcDjDWSqKmcwk z6eQb/qOq1MQDQORx6xYNDnB8qq+Z4SinSgDEADqLW/ZXhp4/ljg4qvDZMEkh9oum5Yd NA/0iYbx+QylfUhcTaHeQ7f2xLw7Wg/wVj8ARwuwoYI16oDfMpcatVrqfhd7y+ptNDZ8 +LjBFui/29ZG3e2SqJtBLcN/SUcGb53a6IYiEFHz+Ys1Ww4ASSczWcrWMYnm3hhFSQD8 OA1Q== 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=e50h0rv9rWiIypCYIm4Lk5gtLy8wge417FHJ3filWHs=; b=k2hYRjGKGj1QPgaCCF3hssKd0/piEK3YGfQ3vFk3MfjH3DFOHqOLFF8TNB4rMM8Dem 43BnWdes0PsOR5kZDt132BbAjNEfTjo9QOzgnKAdR865p1wIs9IEUudBhyuZ5mm7Aosp xTZv22LUspGCdy06TqUCo+kh5kB8kZGSKgnoyVj+oc6W5DX6TkNomvs7yAAunAbg4Duy AjRg9j61yhmhao6Pt0RYmS5DLb4pgWm++iUxQozCgvHW/iPGn7NPEKdcoGm2DYoYXd9g Cw0u1Mp2aCgpnA2WCjlKbirHoyGwyfuZ7I0bnk9uyUY2mBbR8GJq3dYom+ItlnOj6djB k7PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OZnvBWEt; 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 p123si6497462wme.116.2019.04.25.10.28.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 25 Apr 2019 10:28:30 -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=OZnvBWEt; 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]:32940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJiAf-0007yu-Bj for patch@linaro.org; Thu, 25 Apr 2019 13:28:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJi8w-0006e1-5V for qemu-devel@nongnu.org; Thu, 25 Apr 2019 13:26:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJi8v-00039k-5Y for qemu-devel@nongnu.org; Thu, 25 Apr 2019 13:26:42 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:34176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJi8u-00038v-Uk for qemu-devel@nongnu.org; Thu, 25 Apr 2019 13:26:41 -0400 Received: by mail-pf1-x441.google.com with SMTP id b3so257317pfd.1 for ; Thu, 25 Apr 2019 10:26:39 -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=e50h0rv9rWiIypCYIm4Lk5gtLy8wge417FHJ3filWHs=; b=OZnvBWEtXPmqlaeIoWutj/GFEofMNxBkLQm42hGokgQj/Vfje5supEuUrinkyQhkWE slcW+lFhiIvtodpB8X4yuzFlqAasbma7mcW6KWG7R4nENxzcIm43PyI/dyDVQnolZ3AM bMMUmgPXIoppzPzU/cFg4FIrTZOsQ/iFU1agVY2yahwaE3uuTN8PFno2wxRolTu/Yblm ktEdBXNh27edKmoGDW1Xy1RW3y2KOssMTPYc8gWSgb5nGJc5b7cXHiwQKu3shadj8QXy 6lht0Vx87pMyYx4/vdqb5hlIca7KKRFXtB0YPunX28QOVxrNpvl9DhdfQbAuTnrFui4o 6Zxg== 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=e50h0rv9rWiIypCYIm4Lk5gtLy8wge417FHJ3filWHs=; b=bxFCwc4TKyYkxT/yuuw8cIOftuD2giziVoaV6ai0fED2eLe6xdGnMtnTzqB/sk3oCV 5yn1ixhbSvuOK0v2Jqm6a0PXX6jS6zYVrpv8j+iRtRQlpSCBbNtLAqVksK1JypnhYghi RhiIo1CJXaFtNQ0xlgBOn28jwlPJayBucN3IMIP85keMpyo485XpkjoOV7Q3a+yfbr0+ a4ly2HJEq1VmDqRW79bBCb9OMKCXTRLUHfYk/jGI7zvDEoFJD/vjAlN/rXykiKmKbACq dOrefQv4sRL4NbnmHBNoZ97EecM3+MHO0q8pJvohQmGsAoEZvbgKfAlz+ddxhQUDM4wv EXCw== X-Gm-Message-State: APjAAAXk0F7ITRwDSRBDad0Q7my9bSluTF6kn0+EjdVuUQQzAeaWSNon 4asO45tgtczq/7Dug3lx3LjK6AKHk30= X-Received: by 2002:a63:6844:: with SMTP id d65mr38929244pgc.393.1556213197963; Thu, 25 Apr 2019 10:26:37 -0700 (PDT) Received: from localhost.localdomain (97-113-179-147.tukw.qwest.net. [97.113.179.147]) by smtp.gmail.com with ESMTPSA id 128sm26439908pgb.47.2019.04.25.10.26.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 10:26:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 25 Apr 2019 10:26:34 -0700 Message-Id: <20190425172636.11128-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::441 Subject: [Qemu-devel] [PATCH 0/2] target/riscv fixup and reserved argument checks 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: palmer@sifive.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Based-on: https://github.com/palmer-dabbelt/qemu/tree/for-master The first patch is my (interim) solution for compilation with clang. I'm still open to Thomas' suggestion to add -Wno-typedef-redefinition in the configure script. I had intended to squash this into the indicated patch when I got around to re-sending the patch set, but Palmer has started queueing patches already. The second patch handles the C.LWSP reserved operand case that Palmer pointed out during review, and 4 others that I found while double checking against the RVC instruction set listings. r~ Richard Henderson (2): fixup! target/riscv: Name the argument sets for all of insn32 formats target/riscv: Add checks for several RVC reserved operands target/riscv/translate.c | 13 ++++++++++--- target/riscv/insn16-64.decode | 10 ++++++++-- target/riscv/insn16.decode | 7 ++++++- 3 files changed, 24 insertions(+), 6 deletions(-) -- 2.17.1