]> Git Repo - qemu.git/commitdiff
exec/memory: Expose memory_region_access_valid()
authorPhilippe Mathieu-Daudé <[email protected]>
Sat, 17 Dec 2022 15:24:50 +0000 (16:24 +0100)
committerThomas Huth <[email protected]>
Mon, 9 Jan 2023 12:50:13 +0000 (13:50 +0100)
Instead of having hardware device poking into memory
internal API, expose memory_region_access_valid().

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20221217152454[email protected]>
Reviewed-by: Eric Farman <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
hw/s390x/s390-pci-inst.c
include/exec/memory-internal.h
include/exec/memory.h

index 9abe95130c5497dbcd4850c30fbd62561e04e731..2eee5db7e1d23e101815bdbba089cdbedc189874 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "qemu/osdep.h"
 #include "exec/memop.h"
-#include "exec/memory-internal.h"
+#include "exec/memory.h"
 #include "qemu/error-report.h"
 #include "sysemu/hw_accel.h"
 #include "hw/s390x/s390-pci-inst.h"
index 9fcc2af25c884d76ede07cee426452728c80ac67..100c1237ac21520294070c4585d4f4806ddd24b4 100644 (file)
@@ -38,10 +38,6 @@ void flatview_unref(FlatView *view);
 
 extern const MemoryRegionOps unassigned_mem_ops;
 
-bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
-                                unsigned size, bool is_write,
-                                MemTxAttrs attrs);
-
 void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
 AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
 void address_space_dispatch_compact(AddressSpaceDispatch *d);
index 91f8a2395a8445d771e131eaf052f417b0b9f7bf..c37ffdbcd1b8b8bf96f1a34c3ba9a939ce133beb 100644 (file)
@@ -2442,6 +2442,10 @@ void memory_global_dirty_log_stop(unsigned int flags);
 
 void mtree_info(bool flatview, bool dispatch_tree, bool owner, bool disabled);
 
+bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
+                                unsigned size, bool is_write,
+                                MemTxAttrs attrs);
+
 /**
  * memory_region_dispatch_read: perform a read directly to the specified
  * MemoryRegion.
This page took 0.033299 seconds and 4 git commands to generate.