aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPeng Hao <peng.hao2@zte.com.cn>2018-10-18 00:52:56 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-19 13:44:11 +0200
commit37abf8d234d41a7cda986c594c9107c9edddb7d9 (patch)
treee39fcb61f705c3eb0bdfbb080e7db464f9dd62d9 /hw
parentf98167ea069190f738c1e79188b4b2325ca08006 (diff)
target-i386: add i440fx 0xcf8 port as coalesced_pio
Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> Message-Id: <1539795177-21038-5-git-send-email-peng.hao2@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci-host/piix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
index 0e608347c1..da73743fa2 100644
--- a/hw/pci-host/piix.c
+++ b/hw/pci-host/piix.c
@@ -327,6 +327,10 @@ static void i440fx_pcihost_realize(DeviceState *dev, Error **errp)
sysbus_add_io(sbd, 0xcfc, &s->data_mem);
sysbus_init_ioports(sbd, 0xcfc, 4);
+
+ /* register i440fx 0xcf8 port as coalesced pio */
+ memory_region_set_flush_coalesced(&s->data_mem);
+ memory_region_add_coalescing(&s->conf_mem, 0, 4);
}
static void i440fx_realize(PCIDevice *dev, Error **errp)