]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/pci-host/q35.c
devices: Associate devices to their logical category
[thirdparty/qemu.git] / hw / pci-host / q35.c
index 6b1b3b7ab1f4f64b5e7a720728e826db8dae3e4b..69234de871c85d0f9f12608bdccbd3113d732e82 100644 (file)
@@ -78,6 +78,7 @@ static void q35_host_class_init(ObjectClass *klass, void *data)
     hc->root_bus_path = q35_host_root_bus_path;
     dc->realize = q35_host_realize;
     dc->props = mch_props;
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->fw_name = "pci";
 }
 
@@ -306,6 +307,7 @@ static void mch_class_init(ObjectClass *klass, void *data)
     k->init = mch_init;
     k->config_write = mch_write_config;
     dc->reset = mch_reset;
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->desc = "Host bridge";
     dc->vmsd = &vmstate_mch;
     k->vendor_id = PCI_VENDOR_ID_INTEL;