target/riscv: Remove empty target_monitor_defs() symbol

Prefer the stub target_monitor_defs() symbol introduced in commit
bf95728400 ("monitor: remove target-specific code from monitor.c").

Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Chao Liu <chao.liu.zevorn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260219191955.83815-24-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2026-02-17 12:57:48 +01:00
parent aa75a7c09b
commit 6bd0ccc455

View File

@@ -244,19 +244,6 @@ void hmp_info_mem(Monitor *mon, const QDict *qdict)
mem_info_svxx(mon, env);
}
/*
* We have way too many potential CSRs and regs being added
* regularly to register them in a static array.
*
* Declare an empty array instead, making get_monitor_def() use
* the target_get_monitor_def() API directly.
*/
const MonitorDef monitor_defs[] = { { } };
const MonitorDef *target_monitor_defs(void)
{
return monitor_defs;
}
static bool reg_is_ulong_integer(CPURISCVState *env, const char *name,
target_ulong *val, bool is_gprh)
{