@samitouri / QOSamiQemu / commits / b73b24f6bb

hw/cxl: Define cxl_fmws_get_all_sorted() stub

Add a stub for cxl_fmws_get_all_sorted() to fix building a QEMU configured with the '--without-default-devices' option: Undefined symbols for architecture arm64: "_cxl_fmws_get_all_sorted", referenced from: _cxl_build_cedt in hw_acpi_cxl.c.o Note, the CXL <-> ACPI Kconfig relationship is a bit convoluted. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260423170229.64655-3-philmd@linaro.org>

Philippe Mathieu-Daudé committed Apr 22, 2026 at 11:11 UTC b73b24f6bbd1eba0216180579f3d687c80f6c1e4
1 file changed +5
hw/cxl/cxl-host-stubs.c
+5
@@ -18,3 +18,8 @@ hwaddr cxl_fmws_set_memmap(hwaddr base, hwaddr max_addr)
18 void cxl_fmws_update_mmio(void) {};
19
20 const MemoryRegionOps cfmws_ops;
21 +
22 +GSList *cxl_fmws_get_all_sorted(void)
23 +{
24 + g_assert_not_reached();
25 +}