target/riscv: Remove unnecessary riscv_*_names[] declaration
riscv_excp_names[] and riscv_intr_names[] are only referenced by target/riscv/cpu.c locally. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20210514052435.2203156-1-bmeng.cn@gmail.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
bbf3d1b48f
commit
9a575d33fb
@ -51,7 +51,7 @@ const char * const riscv_fpr_regnames[] = {
|
||||
"f30/ft10", "f31/ft11"
|
||||
};
|
||||
|
||||
const char * const riscv_excp_names[] = {
|
||||
static const char * const riscv_excp_names[] = {
|
||||
"misaligned_fetch",
|
||||
"fault_fetch",
|
||||
"illegal_instruction",
|
||||
@ -78,7 +78,7 @@ const char * const riscv_excp_names[] = {
|
||||
"guest_store_page_fault",
|
||||
};
|
||||
|
||||
const char * const riscv_intr_names[] = {
|
||||
static const char * const riscv_intr_names[] = {
|
||||
"u_software",
|
||||
"s_software",
|
||||
"vs_software",
|
||||
|
@ -320,8 +320,6 @@ static inline bool riscv_feature(CPURISCVState *env, int feature)
|
||||
|
||||
extern const char * const riscv_int_regnames[];
|
||||
extern const char * const riscv_fpr_regnames[];
|
||||
extern const char * const riscv_excp_names[];
|
||||
extern const char * const riscv_intr_names[];
|
||||
|
||||
const char *riscv_cpu_get_trap_name(target_ulong cause, bool async);
|
||||
void riscv_cpu_do_interrupt(CPUState *cpu);
|
||||
|
Loading…
Reference in New Issue
Block a user