diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-27 17:14:38 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-02 14:55:32 +0200 |
commit | aab1b3eeb4a2f6d82a6c4e463add2bfa19827b64 (patch) | |
tree | 6acbf24d52934e073d48f0eb6d0550c3410507cb /hw/i386 | |
parent | 3325af5355762863f4ca7ce2a7b45670756547ac (diff) | |
download | qemu-aab1b3eeb4a2f6d82a6c4e463add2bfa19827b64.zip qemu-aab1b3eeb4a2f6d82a6c4e463add2bfa19827b64.tar.gz qemu-aab1b3eeb4a2f6d82a6c4e463add2bfa19827b64.tar.bz2 |
hw/i386/pc: Restrict CXL to PCI-based machines
CXL is based on PCIe. In is pointless to initialize
its context on non-PCI machines.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-ID: <20240327161642.33574-1-philmd@linaro.org>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/pc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index e80f02b..5c21b0c 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1738,7 +1738,9 @@ static void pc_machine_initfn(Object *obj) pcms->pcspk = isa_new(TYPE_PC_SPEAKER); object_property_add_alias(OBJECT(pcms), "pcspk-audiodev", OBJECT(pcms->pcspk), "audiodev"); - cxl_machine_init(obj, &pcms->cxl_devices_state); + if (pcmc->pci_enabled) { + cxl_machine_init(obj, &pcms->cxl_devices_state); + } pcms->machine_done.notify = pc_machine_done; qemu_add_machine_init_done_notifier(&pcms->machine_done); |