mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
fdc: make optional
Ignore failure with fdc device creation. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
63ffb564dc
commit
17801c78fe
1 changed files with 4 additions and 1 deletions
5
hw/fdc.h
5
hw/fdc.h
|
@ -11,7 +11,10 @@ static inline void fdctrl_init_isa(DriveInfo **fds)
|
|||
{
|
||||
ISADevice *dev;
|
||||
|
||||
dev = isa_create("isa-fdc");
|
||||
dev = isa_try_create("isa-fdc");
|
||||
if (!dev) {
|
||||
return;
|
||||
}
|
||||
if (fds[0]) {
|
||||
qdev_prop_set_drive_nofail(&dev->qdev, "driveA", fds[0]->bdrv);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue