[RFC PATCH 16/25] exec/memory: Add methods for aligned pointer access (physical memory)

Philippe Mathieu-Daudé posted 25 patches 4 years, 8 months ago
[RFC PATCH 16/25] exec/memory: Add methods for aligned pointer access (physical memory)
Posted by Philippe Mathieu-Daudé 4 years, 8 months ago
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 include/exec/memory.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/exec/memory.h b/include/exec/memory.h
index 7eeabbceef3..28c0e68e7d8 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -2337,6 +2337,11 @@ static inline void address_space_stb_cached(MemoryRegionCache *cache,
 #define ARG1_DECL    MemoryRegionCache *cache
 #include "exec/memory_ldst_phys.h.inc"
 
+#define SUFFIX       _cached_aligned
+#define ARG1         cache
+#define ARG1_DECL    MemoryRegionCache *cache
+#include "exec/memory_ldst_phys.h.inc"
+
 /* address_space_cache_init: prepare for repeated access to a physical
  * memory region
  *
-- 
2.26.3