target/riscv: Add CSR name in the CSR function table
commit8ceac5dc3d7ded3cc408255da09a7f0e52ae8416
authorBin Meng <bin.meng@windriver.com>
Tue, 12 Jan 2021 04:52:02 +0000 (12 12:52 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Sat, 16 Jan 2021 18:57:21 +0000 (16 10:57 -0800)
tree01e65c545b590a8bf5105cdcb07b311a1d938342
parent56118ee88ddf0498e0c8c4c81ef91d793c76866f
target/riscv: Add CSR name in the CSR function table

In preparation to generate the CSR register list for GDB stub
dynamically, let's add the CSR name in the CSR function table.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 1610427124-49887-3-git-send-email-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.h
target/riscv/csr.c