aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2021-05-31 09:32:55 +0200
committerLaurent Vivier <laurent@vivier.eu>2021-06-05 21:21:56 +0200
commit69b66e49779bb87edb6c6bb5bac2b3527f7dbb71 (patch)
treec0e63f05fbf351c60041834146a2c2b66bf3b97d
parentdd6921894905c8ce0664a77f9dac78408bc3b52d (diff)
downloadqemu-69b66e49779bb87edb6c6bb5bac2b3527f7dbb71.zip
qemu-69b66e49779bb87edb6c6bb5bac2b3527f7dbb71.tar.gz
qemu-69b66e49779bb87edb6c6bb5bac2b3527f7dbb71.tar.bz2
hw/display/macfb: Classify the "nubus-macfb" as display device
The "nubus-macfb" currently shows up as uncategorized device in the output of "-device help". Put it into the display category to fix this ugliness. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210531073255.46286-1-thuth@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--hw/display/macfb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/display/macfb.c b/hw/display/macfb.c
index ff8bdb8..d8183b9 100644
--- a/hw/display/macfb.c
+++ b/hw/display/macfb.c
@@ -450,6 +450,7 @@ static void macfb_nubus_class_init(ObjectClass *klass, void *data)
dc->desc = "Nubus Macintosh framebuffer";
dc->reset = macfb_nubus_reset;
dc->vmsd = &vmstate_macfb;
+ set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
device_class_set_props(dc, macfb_nubus_properties);
}