target/riscv: Make csr_ops[CSR_TABLE_SIZE] external
commit56118ee88ddf0498e0c8c4c81ef91d793c76866f
authorBin Meng <bin.meng@windriver.com>
Tue, 12 Jan 2021 04:52:01 +0000 (12 12:52 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Sat, 16 Jan 2021 18:57:21 +0000 (16 10:57 -0800)
treeba062da720a30a0fcff7d7e4cd8a48c39628593a
parent29b5fe0dcd512f9829475e3eb3f6fdc5e293b8f0
target/riscv: Make csr_ops[CSR_TABLE_SIZE] external

In preparation to generate the CSR register list for GDB stub
dynamically, change csr_ops[] to non-static so that it can be
referenced externally.

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