projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
825bd5f
)
automatic floppy boot
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 18 Jan 2004 22:35:25 +0000
(22:35 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 18 Jan 2004 22:35:25 +0000
(22:35 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@563
c046a42c
-6fe2-441c-8c8c-
71466251a162
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 6c43a58e17a252df71268ea3b193360f361fbee7..7b52203a7e368b9706c597620761c00997480d0e 100644
(file)
--- 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" */