Received: from eggs.gnu.org ([2001:4830:134:3::10]:35593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzQP2-0003hi-V6 for qemu-devel@nongnu.org; Mon, 01 Jun 2015 10:09:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzQOy-0001Y9-Gs for qemu-devel@nongnu.org; Mon, 01 Jun 2015 10:09:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzQOy-0001Y4-BY for qemu-devel@nongnu.org; Mon, 01 Jun 2015 10:09:16 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id EE8633672B8 for ; Mon, 1 Jun 2015 14:09:15 +0000 (UTC) From: Marcel Apfelbaum Date: Mon, 1 Jun 2015 17:09:12 +0300 Message-Id: <1433167752-5311-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH] hw/q35: fix floppy controller definition in ich9 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, pbonzini@redhat.com, jsnow@redhat.com, kraxel@redhat.com, mst@redhat.com In DSDT FDC0 declares the IO region as IO(Decode16, 0x03F2, 0x03F2, 0x00, 0x04). Use the same in lpc_ich9 initialization code. Now the floppy drive is detected correctly on Windows. Signed-off-by: Marcel Apfelbaum --- hw/isa/lpc_ich9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index dba7585..bc9afc6 100644 --- a/hw/isa/lpc_ich9.c +++ b/hw/isa/lpc_ich9.c @@ -494,7 +494,7 @@ static void ich9_lpc_machine_ready(Notifier *n, void *opaque) /* lpt */ pci_conf[0x82] |= 0x04; } - if (memory_region_present(io_as, 0x3f0)) { + if (memory_region_present(io_as, 0x3f2)) { /* floppy */ pci_conf[0x82] |= 0x08; } -- 2.1.0