automatic floppy boot

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@563 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-01-18 22:35:25 +00:00
parent 825bd5f8e5
commit d030931173
1 changed files with 6 additions and 2 deletions

8
vl.c
View File

@ -3461,8 +3461,12 @@ int main(int argc, char **argv)
help();
/* boot to cd by default if no hard disk */
if (hd_filename[0] == '\0' && boot_device == 'c')
boot_device = 'd';
if (hd_filename[0] == '\0' && boot_device == 'c') {
if (fd_filename[0] != '\0')
boot_device = 'a';
else
boot_device = 'd';
}
#if !defined(CONFIG_SOFTMMU)
/* must avoid mmap() usage of glibc by setting a buffer "by hand" */