aboutsummaryrefslogtreecommitdiff
path: root/include/exec/memory-internal.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-05-24 11:55:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-05-29 16:27:11 +0200
commitd2702032b4746515cff0bf29891a6b6decfc3d86 (patch)
tree75829f83cab4ca9944886d8eeb9c8fdc608efe5b /include/exec/memory-internal.h
parent82f2563fc81532e24380085d23a9d32c17b74169 (diff)
memory: export memory_region_access_valid to exec.c
We'll use it to implement address_space_access_valid. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/memory-internal.h')
-rw-r--r--include/exec/memory-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h
index c18b36cd15..799c02a63c 100644
--- a/include/exec/memory-internal.h
+++ b/include/exec/memory-internal.h
@@ -45,6 +45,9 @@ void address_space_destroy_dispatch(AddressSpace *as);
extern const MemoryRegionOps unassigned_mem_ops;
+bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
+ unsigned size, bool is_write);
+
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host,
MemoryRegion *mr);
ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr);