aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2012-05-24 11:02:28 +0200
committerKevin Wolf <kwolf@redhat.com>2012-05-25 18:18:53 +0200
commit9ecd394753919b7395e620dffb8a5e23c45b5e07 (patch)
tree4d57bc2e33f4e88c4cc05317d609f02856d3ee76 /hw/pc.c
parentb84762e2456e15c091c25aff052afb8766394acd (diff)
downloadqemu-9ecd394753919b7395e620dffb8a5e23c45b5e07.zip
qemu-9ecd394753919b7395e620dffb8a5e23c45b5e07.tar.gz
qemu-9ecd394753919b7395e620dffb8a5e23c45b5e07.tar.bz2
fdc: floppy drive should be visible after start without media
If you start guest with floppy drive but without media inserted, guest still should see floppy drive pressent. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 4d34a33..967c17a 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -382,7 +382,7 @@ void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size,
if (floppy) {
fdc_get_bs(fd, floppy);
for (i = 0; i < 2; i++) {
- if (fd[i] && bdrv_is_inserted(fd[i])) {
+ if (fd[i]) {
bdrv_get_floppy_geometry_hint(fd[i], &nb_heads, &max_track,
&last_sect, FDRIVE_DRV_NONE,
&fd_type[i], &rate);