diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-10 18:15:49 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-20 16:39:52 +0200 |
| commit | df32fd1c9f53dd3b7abd28e29f851965039eabda (patch) | |
| tree | 37996235c390c2c368f595090642b1aedea3b5db /exec.c | |
| parent | 96478592a93f93322ecc20d0a6eccb4d4ef33c7a (diff) | |
| download | focaccia-qemu-df32fd1c9f53dd3b7abd28e29f851965039eabda.tar.gz focaccia-qemu-df32fd1c9f53dd3b7abd28e29f851965039eabda.zip | |
dma: eliminate DMAContext
The DMAContext is a simple pointer to an AddressSpace that is now always already available. Make everyone hold the address space directly, and clean up the DMA API to use the AddressSpace directly. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
| -rw-r--r-- | exec.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/exec.c b/exec.c index 89259c92a1..a18f8330da 100644 --- a/exec.c +++ b/exec.c @@ -63,7 +63,6 @@ static MemoryRegion *system_io; AddressSpace address_space_io; AddressSpace address_space_memory; -DMAContext dma_context_memory; MemoryRegion io_mem_rom, io_mem_notdirty; static MemoryRegion io_mem_unassigned; @@ -1839,8 +1838,6 @@ static void memory_map_init(void) memory_listener_register(&core_memory_listener, &address_space_memory); memory_listener_register(&io_memory_listener, &address_space_io); memory_listener_register(&tcg_memory_listener, &address_space_memory); - - dma_context_init(&dma_context_memory, &address_space_memory); } MemoryRegion *get_system_memory(void) |