aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:13 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:13 +0000
commit6842a08ee0f59dd00adcd51fda4705c412b6a0dd (patch)
tree9bc6a91600da35a81087d84889476634d40f1377 /cpu-common.h
parentf1698408f1dcb7548a21828a0b1e2b530fae3af3 (diff)
Compile pci only once
Move coalesced_mmio declarations to a more accessible location. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'cpu-common.h')
-rw-r--r--cpu-common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h
index f53690ac8c..bb053007f7 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -82,6 +82,17 @@ struct CPUPhysMemoryClient {
void cpu_register_phys_memory_client(CPUPhysMemoryClient *);
void cpu_unregister_phys_memory_client(CPUPhysMemoryClient *);
+/* Coalesced MMIO regions are areas where write operations can be reordered.
+ * This usually implies that write operations are side-effect free. This allows
+ * batching which can make a major impact on performance when using
+ * virtualization.
+ */
+void qemu_register_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size);
+
+void qemu_unregister_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size);
+
+void qemu_flush_coalesced_mmio_buffer(void);
+
uint32_t ldub_phys(target_phys_addr_t addr);
uint32_t lduw_phys(target_phys_addr_t addr);
uint32_t ldl_phys(target_phys_addr_t addr);