diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2021-10-15 11:16:54 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-10-18 00:41:36 +0200 |
commit | 7c8eae45c0c12c92055486184f779d57a7677948 (patch) | |
tree | 5b346a9ee84d794051947cf73e78d8d595ca1265 /hw | |
parent | cfddceba7f9f56a5564015962154dccd242f5c8b (diff) | |
download | qemu-7c8eae45c0c12c92055486184f779d57a7677948.zip qemu-7c8eae45c0c12c92055486184f779d57a7677948.tar.gz qemu-7c8eae45c0c12c92055486184f779d57a7677948.tar.bz2 |
via-ide: Set user_creatable to false
This model only works as a function of the via superio chip not as a
standalone PCI device.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211015092159.3E863748F57@zero.eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ide/via.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ide/via.c b/hw/ide/via.c index 94cc214..e91dad6 100644 --- a/hw/ide/via.c +++ b/hw/ide/via.c @@ -217,6 +217,9 @@ static void via_ide_class_init(ObjectClass *klass, void *data) dc->reset = via_ide_reset; dc->vmsd = &vmstate_ide_pci; + /* Reason: only works as function of VIA southbridge */ + dc->user_creatable = false; + k->realize = via_ide_realize; k->exit = via_ide_exitfn; k->vendor_id = PCI_VENDOR_ID_VIA; |