aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-10-05 11:39:40 +0200
committerThomas Huth <thuth@redhat.com>2018-10-17 08:40:15 +0200
commit8c827c53c50c4e6212e41c0582ae0f20d5724aa8 (patch)
tree4244f8c9c90917afcc1859474e533b6b0793405f /hw/core
parent97ff87c0ed020c2a4b931146e142d67abe852e22 (diff)
hw/core/generic-loader: Set a category for the generic-loader device
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>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/generic-loader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c
index fde32cbda1..be29ae12b8 100644
--- a/hw/core/generic-loader.c
+++ b/hw/core/generic-loader.c
@@ -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 = {