From nobody Tue Feb 10 20:28:47 2026 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 (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1521915724142403.6582277048781; Sat, 24 Mar 2018 11:22:04 -0700 (PDT) Received: from localhost ([::1]:46724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eznnn-0000DZ-5V for importer@patchew.org; Sat, 24 Mar 2018 14:22:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eznke-0006er-Fz for qemu-devel@nongnu.org; Sat, 24 Mar 2018 14:19:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezngT-0003k4-LE for qemu-devel@nongnu.org; Sat, 24 Mar 2018 14:18:48 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:46147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezngT-0003jg-FR for qemu-devel@nongnu.org; Sat, 24 Mar 2018 14:14:29 -0400 Received: by mail-pl0-x241.google.com with SMTP id f5-v6so9367766plj.13 for ; Sat, 24 Mar 2018 11:14:29 -0700 (PDT) Received: from monty.com (h98.112.139.40.ip.windstream.net. [40.139.112.98]) by smtp.gmail.com with ESMTPSA id k24sm22314646pff.77.2018.03.24.11.14.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Mar 2018 11:14: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=oDVDB19iZbMtMOzIyqZWk2blYn6n5GmfegdBqD4wXE0=; b=A/ZVddZgmcH/MZepivv17m2jB0OikncVHF8Pdb35W7YTxQ5i1yzlnG9NSLatql2o5D EDW2DBcitvwuIsWZ9tFGcRaHRMXJVuxlhht106mUQcIZDD82ejEG+d6Fga9HUyJLXZmV Xb6ccGDnGYbqZO7foJ8kbx9Tj/oyTviUBFTC5Ogw6U8ULGXVY/TP/5d3ULw0EIWxILUh KbaYCfl2VECOdY1Ocx5hNj+QpQW7YqCwTu3M/ZH5eLIYGqNn078g4SoQUBt77kNwnaDC 0s1UQ82b2cA3SV6o0PklbhoFGMD/zdR9zEPJaXRaT3fW4kILCw4poOGXR/sy5ibbV7ox kXDA== 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=oDVDB19iZbMtMOzIyqZWk2blYn6n5GmfegdBqD4wXE0=; b=S62g4u1TMeGaxHg+EE90ym0oAmtwFDJKPm5tinJnGSA33akTpCgnNG4J0WeP5gsS3t L88m1KENCxlIQkV+ft3Zmsw25OHPvaLK65WBjCSk6e1WHYXhseugzHhmElYF/pJYl6iL m4Pho7ZADwitGNpEq6kptXwTkd3VcpLy+So593CttGEKm5X8k9ah1v7UeVMT5DyeS1mG /6n+ba5pAzD601NPQhBO9Qddk09pBMH0OuATxp+BZu/Fau5YEg5uf4h76CpqYicUqMpE TE5dp59bBZIvi9r2rwoQDjzqNxRbSjOchBQ5fLPFjV3ZmrRVXUUiRUUW4LcJSgze5oqx cW4g== X-Gm-Message-State: AElRT7Gdl93daUqGB3FGkfp9qNf/dxShYYb8bVEgqQpTpZQfLk85ikx+ 1b0dgUGttjkrnd7Pr1EIumLrjYE0GV0= X-Google-Smtp-Source: AG47ELvWYgFQMSXvQaECAcl+RRB/qoaObcDu1owkbP6RTyYjchsjU1MNPfut/Uh7tm674DblYB7vkQ== X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr23089296plb.317.1521915268519; Sat, 24 Mar 2018 11:14:28 -0700 (PDT) From: Michael Clark To: qemu-devel@nongnu.org Date: Sat, 24 Mar 2018 11:13:30 -0700 Message-Id: <1521915220-65389-5-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521915220-65389-1-git-send-email-mjc@sifive.com> References: <1521915220-65389-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:c01::241 Subject: [Qemu-devel] [PATCH v6 11/26] 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 9de34d7..ad65b39 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 41e06ac..1fdcd75 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -72,6 +72,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