Jonathan Cameron 9136f661c7 hw/pci-bridge: pci_expander_bridge fix type in pxb_cxl_dev_reset()
Reproduce issue with

configure --enable-qom-cast-debug ...

qemu-system-x86_64 -display none -machine q35,cxl=on -device pxb-cxl,bus=pcie.0

  hw/pci-bridge/pci_expander_bridge.c:54:PXB_DEV: Object 0x5570e0b1ada0 is not an instance of type pxb
  Aborted

The type conversion results in the right state structure, but PXB_DEV is
not a parent of PXB_CXL_DEV hence the error. Rather than directly
cleaning up the inheritance, this is the minimal fix which will be
followed by the cleanup.

Fixes: 154070eaf6 ("hw/pxb-cxl: Support passthrough HDM Decoders unless overridden")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230420142750.6950-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-04-24 22:56:55 -04:00
..
2023-02-08 07:28:05 +01:00
2023-04-21 04:25:52 -04:00
2023-03-24 11:45:46 +01:00
2023-04-21 04:25:52 -04:00
2023-03-13 22:57:39 +04:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-24 11:45:33 +01:00
2023-03-20 12:43:50 +01:00
2023-03-10 14:31:37 +00:00
2023-04-21 04:25:52 -04:00
2023-03-09 10:22:50 +00:00
2023-03-28 13:10:55 +08:00
2023-04-12 12:03:09 +02:00
2023-03-03 17:11:22 +00:00
2023-04-21 04:25:52 -04:00
2023-02-08 07:28:05 +01:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2023-04-21 04:25:52 -04:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00