summary refs log tree commit diff stats
path: root/include/exec
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2024-06-20 13:16:54 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-28 14:44:51 +0200
commit7246c4cc470409bc77ae607463d1fcd026149d6a (patch)
tree66d4d3f9c338c2e43f336339d8780bc67e6f6d86 /include/exec
parent17c7df806b39d512271749ffdfc0376473744d63 (diff)
downloadfocaccia-qemu-7246c4cc470409bc77ae607463d1fcd026149d6a.tar.gz
focaccia-qemu-7246c4cc470409bc77ae607463d1fcd026149d6a.zip
exec: don't use void* in pointer arithmetic in headers
void* pointer arithmetic is a GCC extentension which could not be
available in other build tools (e.g. C++). This changes removes this
assumption.

Signed-off-by: Roman Kiryanov <rkir@google.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20240620201654.598024-1-rkir@google.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h
index 154626f9ad..c26ede33d2 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -2764,7 +2764,7 @@ MemTxResult address_space_write_rom(AddressSpace *as, hwaddr addr,
 #include "exec/memory_ldst_phys.h.inc"
 
 struct MemoryRegionCache {
-    void *ptr;
+    uint8_t *ptr;
     hwaddr xlat;
     hwaddr len;
     FlatView *fv;