summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-18 22:35:25 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-18 22:35:25 +0000
commitd030931173a2d8c9038c45950d72900097013ecb (patch)
treeb6f3f6582f057c2c2aa45544abbbd121958d077c /vl.c
parent825bd5f8e5dfe4f521e1dcbce91e7d37b263d65d (diff)
downloadqemu-d030931173a2d8c9038c45950d72900097013ecb.tar.gz
automatic floppy boot
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@563 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 6c43a58e17..7b52203a7e 100644
--- a/vl.c
+++ b/vl.c
@@ -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" */