Make function invalidate_and_set_dirty public. It is required by PAM emulation.

Signed-off-by: Efimov Vasily <r...@ispras.ru>
---
 exec.c                         | 2 +-
 include/exec/memory-internal.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/exec.c b/exec.c
index 251dc79..4e37ded 100644
--- a/exec.c
+++ b/exec.c
@@ -2281,7 +2281,7 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr,
 
 #else
 
-static void invalidate_and_set_dirty(MemoryRegion *mr, hwaddr addr,
+void invalidate_and_set_dirty(MemoryRegion *mr, hwaddr addr,
                                      hwaddr length)
 {
     uint8_t dirty_log_mask = memory_region_get_dirty_log_mask(mr);
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h
index fb467ac..801da82 100644
--- a/include/exec/memory-internal.h
+++ b/include/exec/memory-internal.h
@@ -31,5 +31,8 @@ extern const MemoryRegionOps unassigned_mem_ops;
 bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
                                 unsigned size, bool is_write);
 
+void invalidate_and_set_dirty(MemoryRegion *mr, hwaddr addr,
+                                     hwaddr length);
+
 #endif
 #endif
-- 
1.9.1


Reply via email to