mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
1ec9b909ff
commit
a621f38de8
4 changed files with 53 additions and 118 deletions
|
@ -302,9 +302,7 @@ extern void *tci_tb_ptr;
|
|||
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 CPUWriteMemoryFunc *_io_mem_write[IO_MEM_NB_ENTRIES][4];
|
||||
extern CPUReadMemoryFunc *_io_mem_read[IO_MEM_NB_ENTRIES][4];
|
||||
extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
|
||||
extern struct MemoryRegion *io_mem_region[IO_MEM_NB_ENTRIES];
|
||||
|
||||
void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx,
|
||||
void *retaddr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue