Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iAbt4-000858-SM for mharc-qemu-riscv@gnu.org; Wed, 18 Sep 2019 11:28:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50037) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAbsw-0007tu-KQ for qemu-riscv@nongnu.org; Wed, 18 Sep 2019 11:28:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAbsv-0007D7-7i for qemu-riscv@nongnu.org; Wed, 18 Sep 2019 11:28:50 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:33213) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAbsv-0007CZ-2e for qemu-riscv@nongnu.org; Wed, 18 Sep 2019 11:28:49 -0400 Received: by mail-pl1-f181.google.com with SMTP id t11so137668plo.0 for ; Wed, 18 Sep 2019 08:28:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=9GK2Bf5OnfdKtfsKMa0SLxJhchcsTnh1ghEkn9cP/2k=; b=BVrxthZ8kZd8ZNZ00sfmO/UP6Y9vfH0a3KUYFAAOiKEk7VIoCDFEakIZBFv+Y3/tB8 Z0jMjU1/97nRlHzsVMxD9emQx8IWAFaCad5gV4tTYJTqNIyajXb+XaVByrApeovknyUp +hpDWFj6c9UuEU73lrX1QT25mpozl13nM/LoMEwSYvIv07ZWVdFEhmf03MkuH9PtOih3 0fkiRSOB486BnPSaqmrK41urDGEZaLjGDXGGjE8LNwRrkK19XBjA325fmC+AZPZsiVim YisPOB1RxrLoSFQsd1duQmPjO7jIDDKTqFSZdchf5xYDln0hq2Nk0yCTX58NYdAbGfGf 6LxA== X-Gm-Message-State: APjAAAXdTf86zQyJMi5APiyNYnKs20s9X6itPerZpn3u876PWb/kkJ2r NDF+oY+wnOe7GzolOJ5zDkN9rMmv2ZA= X-Google-Smtp-Source: APXvYqyiKwA35t3fOAUJzRR8AbMlggMF5egaBiXgqGMq+ISNVpS8hKvuNv4tAaDkm5FPDau0dJOBPA== X-Received: by 2002:a17:902:9001:: with SMTP id a1mr4896053plp.148.1568820527754; Wed, 18 Sep 2019 08:28:47 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id y14sm5706798pge.7.2019.09.18.08.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 08:28:47 -0700 (PDT) Date: Wed, 18 Sep 2019 07:56:37 -0700 Message-Id: <20190918145640.17349-46-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190918145640.17349-1-palmer@sifive.com> References: <20190918145640.17349-1-palmer@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Atish Patra , Alistair Francis , Bin Meng , Palmer Dabbelt From: Palmer Dabbelt To: Peter Maydell X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.214.181 Subject: [Qemu-riscv] [PULL 45/48] target/riscv: Use both register name and ABI name X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2019 15:28:53 -0000 From: Atish Patra Use both the generic register name and ABI name for the general purpose registers and floating point registers. Signed-off-by: Atish Patra Signed-off-by: Alistair Francis Reviewed-by: Bin Meng Signed-off-by: Palmer Dabbelt --- target/riscv/cpu.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 6d52f97d7c..f13e298a36 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -34,17 +34,20 @@ static const char riscv_exts[26] = "IEMAFDQCLBJTPVNSUHKORWXYZG"; const char * const riscv_int_regnames[] = { - "zero", "ra", "sp", "gp", "tp", "t0", "t1", "t2", - "s0", "s1", "a0", "a1", "a2", "a3", "a4", "a5", - "a6", "a7", "s2", "s3", "s4", "s5", "s6", "s7", - "s8", "s9", "s10", "s11", "t3", "t4", "t5", "t6" + "x0/zero", "x1/ra", "x2/sp", "x3/gp", "x4/tp", "x5/t0", "x6/t1", + "x7/t2", "x8/s0", "x9/s1", "x10/a0", "x11/a1", "x12/a2", "x13/a3", + "x14/a4", "x15/a5", "x16/a6", "x17/a7", "x18/s2", "x19/s3", "x20/s4", + "x21/s5", "x22/s6", "x23/s7", "x24/s8", "x25/s9", "x26/s10", "x27/s11", + "x28/t3", "x29/t4", "x30/t5", "x31/t6" }; const char * const riscv_fpr_regnames[] = { - "ft0", "ft1", "ft2", "ft3", "ft4", "ft5", "ft6", "ft7", - "fs0", "fs1", "fa0", "fa1", "fa2", "fa3", "fa4", "fa5", - "fa6", "fa7", "fs2", "fs3", "fs4", "fs5", "fs6", "fs7", - "fs8", "fs9", "fs10", "fs11", "ft8", "ft9", "ft10", "ft11" + "f0/ft0", "f1/ft1", "f2/ft2", "f3/ft3", "f4/ft4", "f5/ft5", + "f6/ft6", "f7/ft7", "f8/fs0", "f9/fs1", "f10/fa0", "f11/fa1", + "f12/fa2", "f13/fa3", "f14/fa4", "f15/fa5", "f16/fa6", "f17/fa7", + "f18/fs2", "f19/fs3", "f20/fs4", "f21/fs5", "f22/fs6", "f23/fs7", + "f24/fs8", "f25/fs9", "f26/fs10", "f27/fs11", "f28/ft8", "f29/ft9", + "f30/ft10", "f31/ft11" }; const char * const riscv_excp_names[] = { -- 2.21.0