summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2020-11-12 12:33:26 +0100
committerPeter Maydell2020-11-12 12:33:26 +0100
commitcb5d19e8294486551c422759260883ed290226d9 (patch)
tree0c3ecd590e8fd28131e299e03046a04f84ed9d1b
parentMerge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.2-pull-re... (diff)
parentmacio: set user_creatable to false in macio_class_init() (diff)
downloadqemu-cb5d19e8294486551c422759260883ed290226d9.tar.gz
qemu-cb5d19e8294486551c422759260883ed290226d9.tar.xz
qemu-cb5d19e8294486551c422759260883ed290226d9.zip
Merge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20201112' into staging
qemu-macppc fix for 5.2 # gpg: Signature made Thu 12 Nov 2020 09:50:45 GMT # gpg: using RSA key CC621AB98E82200D915CC9C45BC2C56FAE0F321F # gpg: issuer "mark.cave-ayland@ilande.co.uk" # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>" [full] # Primary key fingerprint: CC62 1AB9 8E82 200D 915C C9C4 5BC2 C56F AE0F 321F * remotes/mcayland/tags/qemu-macppc-20201112: macio: set user_creatable to false in macio_class_init() Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/misc/macio/macio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c
index 51368884d0..bb601f782c 100644
--- a/hw/misc/macio/macio.c
+++ b/hw/misc/macio/macio.c
@@ -456,6 +456,8 @@ static void macio_class_init(ObjectClass *klass, void *data)
k->class_id = PCI_CLASS_OTHERS << 8;
device_class_set_props(dc, macio_properties);
set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
+ /* Reason: requires PIC property links to be set in macio_*_realize() */
+ dc->user_creatable = false;
}
static const TypeInfo macio_bus_info = {