提交 d0309311 编写于 作者: B bellard

automatic floppy boot


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@563 c046a42c-6fe2-441c-8c8c-71466251a162
上级 825bd5f8
...@@ -3461,8 +3461,12 @@ int main(int argc, char **argv) ...@@ -3461,8 +3461,12 @@ int main(int argc, char **argv)
help(); help();
/* boot to cd by default if no hard disk */ /* boot to cd by default if no hard disk */
if (hd_filename[0] == '\0' && boot_device == 'c') if (hd_filename[0] == '\0' && boot_device == 'c') {
if (fd_filename[0] != '\0')
boot_device = 'a';
else
boot_device = 'd'; boot_device = 'd';
}
#if !defined(CONFIG_SOFTMMU) #if !defined(CONFIG_SOFTMMU)
/* must avoid mmap() usage of glibc by setting a buffer "by hand" */ /* must avoid mmap() usage of glibc by setting a buffer "by hand" */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册