new file mode 100644
@@ -0,0 +1,12 @@
+/*
+ * Human Monitor 'info mem' stub
+ *
+ * Copyright (c) Linaro
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#include "qemu/osdep.h"
+#include "monitor/hmp.h"
+
+HMP_STUB(info_mem)
@@ -202,15 +202,14 @@ SRST
Show virtual to physical memory mappings.
ERST
-#if defined(TARGET_I386) || defined(TARGET_RISCV)
{
.name = "mem",
.args_type = "",
.params = "",
.help = "show the active virtual memory mappings",
.cmd = hmp_info_mem,
+ .arch_bitmask = QEMU_ARCH_I386 | QEMU_ARCH_RISCV,
},
-#endif
SRST
``info mem``
@@ -87,6 +87,7 @@ if have_system
stub_ss.add(files('qmp-cpu.c'))
stub_ss.add(files('qmp-cpu-s390x.c'))
stub_ss.add(files('qmp-cpu-s390x-kvm.c'))
+ stub_ss.add(files('hmp-cmd-info_mem.c'))
stub_ss.add(files('hmp-cmd-info_sev.c'))
stub_ss.add(files('hmp-cmds-hw-s390x.c'))
stub_ss.add(files('hmp-cmds-target-i386.c'))