mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-14 23:13:30 +00:00
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>
This commit is contained in:
parent
17c7df806b
commit
7246c4cc47
|
@ -2764,7 +2764,7 @@ MemTxResult address_space_write_rom(AddressSpace *as, hwaddr addr,
|
||||||
#include "exec/memory_ldst_phys.h.inc"
|
#include "exec/memory_ldst_phys.h.inc"
|
||||||
|
|
||||||
struct MemoryRegionCache {
|
struct MemoryRegionCache {
|
||||||
void *ptr;
|
uint8_t *ptr;
|
||||||
hwaddr xlat;
|
hwaddr xlat;
|
||||||
hwaddr len;
|
hwaddr len;
|
||||||
FlatView *fv;
|
FlatView *fv;
|
||||||
|
|
Loading…
Reference in a new issue