mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
floppy: add drive properties.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ef80b46623
commit
fd8014e132
8 changed files with 55 additions and 46 deletions
6
hw/pc.c
6
hw/pc.c
|
@ -1133,9 +1133,8 @@ static void pc_init1(ram_addr_t ram_size,
|
|||
qemu_irq *isa_irq;
|
||||
qemu_irq *i8259;
|
||||
IsaIrqState *isa_irq_state;
|
||||
DriveInfo *dinfo;
|
||||
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
|
||||
BlockDriverState *fd[MAX_FD];
|
||||
DriveInfo *fd[MAX_FD];
|
||||
int using_vga = cirrus_vga_enabled || std_vga_enabled || vmsvga_enabled;
|
||||
void *fw_cfg;
|
||||
|
||||
|
@ -1378,8 +1377,7 @@ static void pc_init1(ram_addr_t ram_size,
|
|||
#endif
|
||||
|
||||
for(i = 0; i < MAX_FD; i++) {
|
||||
dinfo = drive_get(IF_FLOPPY, 0, i);
|
||||
fd[i] = dinfo ? dinfo->bdrv : NULL;
|
||||
fd[i] = drive_get(IF_FLOPPY, 0, i);
|
||||
}
|
||||
floppy_controller = fdctrl_init_isa(fd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue