From: Thomas Huth Date: Fri, 5 Oct 2018 09:39:40 +0000 (+0200) Subject: hw/core/generic-loader: Set a category for the generic-loader device X-Git-Tag: v3.1.0-rc0~49^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c827c53c50c4e6212e41c0582ae0f20d5724aa8;p=thirdparty%2Fqemu.git 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 Reviewed-by: Cornelia Huck Signed-off-by: Thomas Huth --- diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c index fde32cbda12..be29ae12b82 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 = {