diff options
author | Avi Kivity <avi@redhat.com> | 2012-01-02 13:12:08 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-01-04 13:34:50 +0200 |
commit | a621f38de85598a13d8d8524d1a94fc6a1818215 (patch) | |
tree | 1b72656e5b100a967a0c1f399287c27d84d62a39 /exec-obsolete.h | |
parent | 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f (diff) |
Direct dispatch through MemoryRegion
Now that all mmio goes through MemoryRegions, we can convert
io_mem_opaque to be a MemoryRegion pointer, and remove the thunks
that convert from old-style CPU{Read,Write}MemoryFunc to MemoryRegionOps.
Signed-off-by: Avi Kivity <avi@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'exec-obsolete.h')
-rw-r--r-- | exec-obsolete.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/exec-obsolete.h b/exec-obsolete.h index e08e7504da..f8af27ed1a 100644 --- a/exec-obsolete.h +++ b/exec-obsolete.h @@ -31,9 +31,8 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr); void qemu_ram_free(ram_addr_t addr); void qemu_ram_free_from_ptr(ram_addr_t addr); -int cpu_register_io_memory(CPUReadMemoryFunc * const *mem_read, - CPUWriteMemoryFunc * const *mem_write, - void *opaque); +struct MemoryRegion; +int cpu_register_io_memory(MemoryRegion *mr); void cpu_unregister_io_memory(int table_address); struct MemoryRegionSection; |