Commit b73b24f6bb for qemu.org

commit b73b24f6bbd1eba0216180579f3d687c80f6c1e4
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date:   Wed Apr 22 11:11:09 2026 +0200

    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>

diff --git a/hw/cxl/cxl-host-stubs.c b/hw/cxl/cxl-host-stubs.c
index c015baac81..9b515913ea 100644
--- a/hw/cxl/cxl-host-stubs.c
+++ b/hw/cxl/cxl-host-stubs.c
@@ -18,3 +18,8 @@ hwaddr cxl_fmws_set_memmap(hwaddr base, hwaddr max_addr)
 void cxl_fmws_update_mmio(void) {};

 const MemoryRegionOps cfmws_ops;
+
+GSList *cxl_fmws_get_all_sorted(void)
+{
+    g_assert_not_reached();
+}