summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGan Qixin2020-11-30 09:36:23 +0100
committerLaurent Vivier2021-05-02 17:24:51 +0200
commit76d79cf3d5a1bb83c954db259d0ed6add1d38e43 (patch)
tree6f151fc15ef3bc73b5aa0976630de22fab6f44ae
parentDo not include exec/address-spaces.h if it's not really necessary (diff)
downloadqemu-76d79cf3d5a1bb83c954db259d0ed6add1d38e43.tar.gz
qemu-76d79cf3d5a1bb83c954db259d0ed6add1d38e43.tar.xz
qemu-76d79cf3d5a1bb83c954db259d0ed6add1d38e43.zip
mc146818rtc: put it into the 'misc' category
The category of the mc146818rtc device is not set, put it into the 'misc' category. Signed-off-by: Gan Qixin <ganqixin@huawei.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20201130083630.2520597-6-ganqixin@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--hw/rtc/mc146818rtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c
index 36a2dbf62f..3d2d3854e7 100644
--- a/hw/rtc/mc146818rtc.c
+++ b/hw/rtc/mc146818rtc.c
@@ -1039,6 +1039,7 @@ static void rtc_class_initfn(ObjectClass *klass, void *data)
dc->vmsd = &vmstate_rtc;
isa->build_aml = rtc_build_aml;
device_class_set_props(dc, mc146818rtc_properties);
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
}
static const TypeInfo mc146818rtc_info = {