diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-24 11:55:06 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-29 16:27:11 +0200 |
commit | d2702032b4746515cff0bf29891a6b6decfc3d86 (patch) | |
tree | 75829f83cab4ca9944886d8eeb9c8fdc608efe5b /memory.c | |
parent | 82f2563fc81532e24380085d23a9d32c17b74169 (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 'memory.c')
-rw-r--r-- | memory.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -851,10 +851,10 @@ const MemoryRegionOps unassigned_mem_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static bool memory_region_access_valid(MemoryRegion *mr, - hwaddr addr, - unsigned size, - bool is_write) +bool memory_region_access_valid(MemoryRegion *mr, + hwaddr addr, + unsigned size, + bool is_write) { if (mr->ops->valid.accepts && !mr->ops->valid.accepts(mr->opaque, addr, size, is_write)) { |