diff options
Diffstat (limited to 'hw/mem')
| -rw-r--r-- | hw/mem/memory-device-stubs.c | 22 | ||||
| -rw-r--r-- | hw/mem/meson.build | 1 |
2 files changed, 23 insertions, 0 deletions
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; +} diff --git a/hw/mem/meson.build b/hw/mem/meson.build index faee1fe936..1c1c6da24b 100644 --- a/hw/mem/meson.build +++ b/hw/mem/meson.build @@ -6,6 +6,7 @@ mem_ss.add(when: 'CONFIG_NVDIMM', if_true: files('nvdimm.c')) mem_ss.add(when: 'CONFIG_CXL_MEM_DEVICE', if_true: files('cxl_type3.c')) system_ss.add(when: 'CONFIG_CXL_MEM_DEVICE', if_false: files('cxl_type3_stubs.c')) +system_ss.add(when: 'CONFIG_MEM_DEVICE', if_false: files('memory-device-stubs.c')) system_ss.add_all(when: 'CONFIG_MEM_DEVICE', if_true: mem_ss) system_ss.add(when: 'CONFIG_SPARSE_MEM', if_true: files('sparse-mem.c')) |