To log unassigned I/O region accesses, we provide unassigned_io_ops,
exposed in "system/ioport.h". Similarly, expose unassigned_mem_ops
in "system/memory.h" to be able to log accesses to unassigned MMIO.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
 include/system/memory.h  | 2 ++
 system/memory-internal.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/system/memory.h b/include/system/memory.h
index 3bd5ffa5e0d..f42c6ba31c8 100644
--- a/include/system/memory.h
+++ b/include/system/memory.h
@@ -2714,6 +2714,8 @@ MemTxResult memory_region_dispatch_write(MemoryRegion *mr,
                                          MemOp op,
                                          MemTxAttrs attrs);
 
+extern const MemoryRegionOps unassigned_mem_ops;
+
 /**
  * address_space_init: initializes an address space
  *
diff --git a/system/memory-internal.h b/system/memory-internal.h
index 46f758fa7e4..5588ae35081 100644
--- a/system/memory-internal.h
+++ b/system/memory-internal.h
@@ -28,8 +28,6 @@ static inline AddressSpaceDispatch 
*address_space_to_dispatch(AddressSpace *as)
 FlatView *address_space_get_flatview(AddressSpace *as);
 void flatview_unref(FlatView *view);
 
-extern const MemoryRegionOps unassigned_mem_ops;
-
 void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
 AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
 void address_space_dispatch_compact(AddressSpaceDispatch *d);
-- 
2.51.0


Reply via email to