summary refs log tree commit diff stats
path: root/exec-all.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-03-12 20:50:09 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-03-12 20:50:09 -0500
commit79122e933cd8bda0917c56c1bdac3f2b8d49fb23 (patch)
tree024464f125c49fd112a43df397ecedec8616a64e /exec-all.h
parentcbedde09698d3506da429ae305dcea7f7deee554 (diff)
parent97161e177b4ea2730dff13c4df01475762ab6048 (diff)
downloadfocaccia-qemu-79122e933cd8bda0917c56c1bdac3f2b8d49fb23.tar.gz
focaccia-qemu-79122e933cd8bda0917c56c1bdac3f2b8d49fb23.zip
Merge remote-tracking branch 'qemu-kvm/memory/core' into staging
* qemu-kvm/memory/core:
  memory: get rid of cpu_register_io_memory()
  memory: dispatch directly via MemoryRegion
  exec: fix code tlb entry misused as iotlb in get_page_addr_code()
  memory: store section indices in iotlb instead of io indices
  memory: make phys_page_find() return an unadjusted section
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/exec-all.h b/exec-all.h
index 51d01f260b..3ec60a2c49 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -299,10 +299,11 @@ extern void *tci_tb_ptr;
 
 #if !defined(CONFIG_USER_ONLY)
 
-uint64_t io_mem_read(int index, target_phys_addr_t addr, unsigned size);
-void io_mem_write(int index, target_phys_addr_t addr, uint64_t value,
-                  unsigned size);
-extern struct MemoryRegion *io_mem_region[IO_MEM_NB_ENTRIES];
+struct MemoryRegion *iotlb_to_region(target_phys_addr_t index);
+uint64_t io_mem_read(struct MemoryRegion *mr, target_phys_addr_t addr,
+                     unsigned size);
+void io_mem_write(struct MemoryRegion *mr, target_phys_addr_t addr,
+                  uint64_t value, unsigned size);
 
 void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx,
               void *retaddr);