diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-08 17:53:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-18 11:17:27 +0200 |
commit | 2c888febdfa0290a9e1d1f2133b2a24de47f6120 (patch) | |
tree | 7dd42e5148d8e3e401d225c5c06619ff816c26cc /stubs | |
parent | 5643190b74df601719ca713ea21eea4997a26e78 (diff) |
memory-device: move stubs out of stubs/
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 <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240408155330.522792-15-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/memory_device.c | 22 | ||||
-rw-r--r-- | stubs/meson.build | 1 |
2 files changed, 0 insertions, 23 deletions
diff --git a/stubs/memory_device.c b/stubs/memory_device.c deleted file mode 100644 index 15fd93ff67..0000000000 --- a/stubs/memory_device.c +++ /dev/null @@ -1,22 +0,0 @@ -#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; -} diff --git a/stubs/meson.build b/stubs/meson.build index 92887660e4..a4404e765a 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -31,7 +31,6 @@ stub_ss.add(files('monitor.c')) stub_ss.add(files('monitor-core.c')) stub_ss.add(files('physmem.c')) stub_ss.add(files('qemu-timer-notify-cb.c')) -stub_ss.add(files('memory_device.c')) stub_ss.add(files('qmp-command-available.c')) stub_ss.add(files('qmp-quit.c')) stub_ss.add(files('qtest.c')) |