From nobody Sat Oct 25 21:46:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1521230006973509.1336706068083; Fri, 16 Mar 2018 12:53:26 -0700 (PDT) Received: from localhost ([::1]:59249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewvPk-0007gi-Mq for importer@patchew.org; Fri, 16 Mar 2018 15:53:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewvFH-0007Tm-6E for qemu-devel@nongnu.org; Fri, 16 Mar 2018 15:42:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewvFF-0003mC-49 for qemu-devel@nongnu.org; Fri, 16 Mar 2018 15:42:31 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:38196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewvFE-0003lt-U8 for qemu-devel@nongnu.org; Fri, 16 Mar 2018 15:42:29 -0400 Received: by mail-pf0-x241.google.com with SMTP id d26so4547801pfn.5 for ; Fri, 16 Mar 2018 12:42:28 -0700 (PDT) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id k24sm13780469pff.77.2018.03.16.12.42.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Mar 2018 12:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j4IsCu0Ogw4C4VGML3xebQtkhhgEZnHvVT7BhbcJNGc=; b=YNGGAPugIx1UnmMfvIu2f/viNLeUcM3yybV3L4uW8DqPQcOk8zaAzoiMaD70OFXnFl r56gwwYlolTeugVjfgpsuS+aw9NZtSDDHko2qoaL6LFjuXUwT58dPC4Lsb6DlhcvvQJG Fb2aWsXk/UDiv4F3YL8tO73fXXF0+/Z1UbiSetK4y4prwrzzFqXu+uE5T4fO243OopRN 5oW3l0RM1uvij9gq+/gcyBtJtk9tsLwZkL4hDeSCqAONs3TmpSk6+Y4AUD73aIzUOy4T IQtLAU9wbdBNzP1hRF3HPt7Nc26YbukcuC6FSBvrVDTY24OkYk3qxAtHhCG/U8IAfYx3 yGQg== 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=j4IsCu0Ogw4C4VGML3xebQtkhhgEZnHvVT7BhbcJNGc=; b=llZrDQ3jQOWoODM2PZNgZi56i0RyO+qecq6q+4E9oEQC+OI81T/PZcJhPAIlrxQWu2 Q5sBeBxrY4F2ypSwp3rYOuiMpCVq/jYjeGF+2y0RjBXaQmpDOooCPA5EJTLLjpNs5Pqn xvzoPwfc6uqNdFMVEoly09h5ZWTp87Jp6j9Juv85xAkAXq8FUDmTUXXITyqWGYpCqdEF K0sjiddjefGqNynDHADk6S47NqxlTIXcb1/tx2VayonHbAxWh/DBXA2Vo+BMO1WhcWKa V0C7rmD7B1Lc3GuU7csgucO2UtKWF6SpivVYsGzsikaezxhA+OZeKabyLgaO18Ktat1M 9g5g== X-Gm-Message-State: AElRT7GGC4hx5eirISwQhzTZFwbHnE4xJDIASkKFjQax7FAFzhO6NEP7 pvHWC8uTfp0ANXm4FzwXoqpvC8WYbfU= X-Google-Smtp-Source: AG47ELvsEYgE6IR1DbpoIuDypo96efMVubs8g2BDwTMYlWHr0I5aY5sGoDF9fe4Rp/sxGBDA19R6kg== X-Received: by 10.99.126.26 with SMTP id z26mr2406018pgc.132.1521229347950; Fri, 16 Mar 2018 12:42:27 -0700 (PDT) From: Michael Clark To: qemu-devel@nongnu.org Date: Fri, 16 Mar 2018 12:41:09 -0700 Message-Id: <1521229281-73637-13-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521229281-73637-1-git-send-email-mjc@sifive.com> References: <1521229281-73637-1-git-send-email-mjc@sifive.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 Subject: [Qemu-devel] [PATCH v3 12/24] RISC-V: Update E order and I extension order 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: patches@groups.riscv.org, Michael Clark , Palmer Dabbelt , Sagar Karandikar , Bastian Koppelmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Section 22.8 Subset Naming Convention of the RISC-V ISA Specification defines the canonical order for extensions in the ISA string. It is silent on the position of the E extension however E is a substitute for I so it must come early in the extension list order. A comment is added to state E and I are mutually exclusive, as the E extension will be added to the RISC-V port in the future. Cc: Sagar Karandikar Cc: Bastian Koppelmann Signed-off-by: Michael Clark Signed-off-by: Palmer Dabbelt --- target/riscv/cpu.c | 2 +- target/riscv/cpu.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4851890..d2ae56a 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -26,7 +26,7 @@ =20 /* RISC-V CPU definitions */ =20 -static const char riscv_exts[26] =3D "IMAFDQECLBJTPVNSUHKORWXYZG"; +static const char riscv_exts[26] =3D "IEMAFDQCLBJTPVNSUHKORWXYZG"; =20 const char * const riscv_int_regnames[] =3D { "zero", "ra ", "sp ", "gp ", "tp ", "t0 ", "t1 ", "t2 ", diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index cff02a2..3a0ca2f 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -71,6 +71,7 @@ #define RV(x) ((target_ulong)1 << (x - 'A')) =20 #define RVI RV('I') +#define RVE RV('E') /* E and I are mutually exclusive */ #define RVM RV('M') #define RVA RV('A') #define RVF RV('F') --=20 2.7.0