From 2c888febdfa0290a9e1d1f2133b2a24de47f6120 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 8 Apr 2024 17:53:26 +0200 Subject: memory-device: move stubs out of stubs/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the memory-device stubs are needed exactly when the Kconfig symbols are not needed, move them to hw/mem/. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-ID: <20240408155330.522792-15-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini --- hw/mem/memory-device-stubs.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hw/mem/memory-device-stubs.c (limited to 'hw/mem/memory-device-stubs.c') diff --git a/hw/mem/memory-device-stubs.c b/hw/mem/memory-device-stubs.c new file mode 100644 index 0000000000..15fd93ff67 --- /dev/null +++ b/hw/mem/memory-device-stubs.c @@ -0,0 +1,22 @@ +#include "qemu/osdep.h" +#include "hw/mem/memory-device.h" + +MemoryDeviceInfoList *qmp_memory_device_list(void) +{ + return NULL; +} + +uint64_t get_plugged_memory_size(void) +{ + return (uint64_t)-1; +} + +unsigned int memory_devices_get_reserved_memslots(void) +{ + return 0; +} + +bool memory_devices_memslot_auto_decision_active(void) +{ + return false; +} -- cgit 1.4.1