Commit 17801c78 authored by Blue Swirl's avatar Blue Swirl
Browse files

fdc: make optional



Ignore failure with fdc device creation.
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 63ffb564
...@@ -11,7 +11,10 @@ static inline void fdctrl_init_isa(DriveInfo **fds) ...@@ -11,7 +11,10 @@ static inline void fdctrl_init_isa(DriveInfo **fds)
{ {
ISADevice *dev; ISADevice *dev;
dev = isa_create("isa-fdc"); dev = isa_try_create("isa-fdc");
if (!dev) {
return;
}
if (fds[0]) { if (fds[0]) {
qdev_prop_set_drive_nofail(&dev->qdev, "driveA", fds[0]->bdrv); qdev_prop_set_drive_nofail(&dev->qdev, "driveA", fds[0]->bdrv);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment