hw/core/generic-loader: Set a category for the generic-loader device
authorThomas Huth <thuth@redhat.com>
Fri, 5 Oct 2018 09:39:40 +0000 (11:39 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 17 Oct 2018 06:40:15 +0000 (08:40 +0200)
Each device that is instantiatable by the users should be marked with
a category. Since the generic-loader does not fit anywhere else, put
it into the MISC category.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/core/generic-loader.c

index fde32cbda1297d67a116348d2924b67f8a980671..be29ae12b82bce4afd05e3f5159c99c21b884d12 100644 (file)
@@ -204,6 +204,7 @@ static void generic_loader_class_init(ObjectClass *klass, void *data)
     dc->unrealize = generic_loader_unrealize;
     dc->props = generic_loader_props;
     dc->desc = "Generic Loader";
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static TypeInfo generic_loader_info = {