diff options
author | Anthony Liguori | 2012-10-22 20:26:07 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-10-22 20:26:07 +0200 |
commit | d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43 (patch) | |
tree | 99bdc14357f131ce43ec8309d677a04285a9fa42 /cputlb.c | |
parent | fix CONFIG_QEMU_HELPERDIR generation again (diff) | |
parent | pci: honor PCI_COMMAND_MASTER (diff) | |
download | qemu-d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43.tar.gz qemu-d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43.tar.xz qemu-d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43.zip |
Merge remote-tracking branch 'qemu-kvm/memory/dma' into staging
* qemu-kvm/memory/dma: (23 commits)
pci: honor PCI_COMMAND_MASTER
pci: give each device its own address space
memory: add address_space_destroy()
dma: make dma access its own address space
memory: per-AddressSpace dispatch
s390: avoid reaching into memory core internals
memory: use AddressSpace for MemoryListener filtering
memory: move tcg flush into a tcg memory listener
memory: move address_space_memory and address_space_io out of memory core
memory: manage coalesced mmio via a MemoryListener
xen: drop no-op MemoryListener callbacks
kvm: drop no-op MemoryListener callbacks
xen_pt: drop no-op MemoryListener callbacks
vfio: drop no-op MemoryListener callbacks
memory: drop no-op MemoryListener callbacks
memory: provide defaults for MemoryListener operations
memory: maintain a list of address spaces
memory: export AddressSpace
memory: prepare AddressSpace for exporting
xen_pt: use separate MemoryListeners for memory and I/O
...
Diffstat (limited to 'cputlb.c')
-rw-r--r-- | cputlb.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,11 +21,11 @@ #include "cpu.h" #include "exec-all.h" #include "memory.h" +#include "exec-memory.h" #include "cputlb.h" -#define WANT_EXEC_OBSOLETE -#include "exec-obsolete.h" +#include "memory-internal.h" //#define DEBUG_TLB //#define DEBUG_TLB_CHECK @@ -252,7 +252,7 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr, if (size != TARGET_PAGE_SIZE) { tlb_add_large_page(env, vaddr, size); } - section = phys_page_find(paddr >> TARGET_PAGE_BITS); + section = phys_page_find(address_space_memory.dispatch, paddr >> TARGET_PAGE_BITS); #if defined(DEBUG_TLB) printf("tlb_set_page: vaddr=" TARGET_FMT_lx " paddr=0x" TARGET_FMT_plx " prot=%x idx=%d pd=0x%08lx\n", |