Revision 751c6a17 hw/mips_jazz.c
b/hw/mips_jazz.c | ||
---|---|---|
235 | 235 |
exit(1); |
236 | 236 |
} |
237 | 237 |
for (n = 0; n < MAX_FD; n++) { |
238 |
int fd = drive_get_index(IF_FLOPPY, 0, n); |
|
239 |
if (fd != -1) |
|
240 |
fds[n] = drives_table[fd].bdrv; |
|
241 |
else |
|
242 |
fds[n] = NULL; |
|
238 |
DriveInfo *dinfo = drive_get(IF_FLOPPY, 0, n); |
|
239 |
fds[n] = dinfo ? dinfo->bdrv : NULL; |
|
243 | 240 |
} |
244 | 241 |
fdctrl_init(rc4030[1], 0, 1, 0x80003000, fds); |
245 | 242 |
|
Also available in: Unified diff