Add #ifdef CONFIG_HMP around all hmp_* function implementations and their HMP-only helpers across subsystems. This covers monitor_register_hmp* callers, hmp_info_* handlers, and HMP-only helper functions like slirp_lookup. To link succesfully, use empty cmds tables in hmp-cmds.c (to be removed once meson build-sys is updated with !hmp support later in the series) Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260828-qemu-no-hmp-v5-41-9227de146347@redhat.com>
26 lines
473 B
C
26 lines
473 B
C
/*
|
|
* QEMU PPC (monitor definitions)
|
|
*
|
|
* Copyright (c) 2003-2004 Fabrice Bellard
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "monitor/monitor.h"
|
|
#include "monitor/hmp.h"
|
|
#include "cpu.h"
|
|
|
|
#ifdef CONFIG_HMP
|
|
void hmp_info_tlb(MonitorHMP *hmp, const QDict *qdict)
|
|
{
|
|
CPUArchState *env1 = monitor_hmp_get_cpu_env(hmp);
|
|
|
|
if (!env1) {
|
|
monitor_hmp_printf(hmp, "No CPU available\n");
|
|
return;
|
|
}
|
|
dump_mmu(env1);
|
|
}
|
|
#endif
|