gdb/riscv: Give user-friendly names for CSRs
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Oct 2018 12:23:34 +0000 (13:23 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Oct 2018 12:27:56 +0000 (13:27 +0100)
commit420ecd9ce8a3d61f950bf24d8d7b8827d09f59db
treefab01bf08d413b694647718196edaa8056bb4319
parent45a0eaf77022963d639d6d19871dbab7b79703fc
gdb/riscv: Give user-friendly names for CSRs

The recent commit:

    commit 0dbfcfffe9abbc5198bce95eb8c66b6bc9b364be
    Date:   Tue Oct 16 22:40:09 2018 +0100

        gdb/riscv: Fix register access for register aliases

broke the CSR names for RISC-V, now all of the CSRs have names like,
csr0, csr1, csr2, etc.  This commit restores the previous
user-friendly names.

gdb/ChangeLog:

* riscv-tdep.c (riscv_register_name): Use the user-friendly names
for CSRs.
gdb/ChangeLog
gdb/riscv-tdep.c