The memory mapping API uses hwaddr, so use it in the struct, too. This avoids a header dependency on target_ulong type.
Cc: Wen Congyang <we...@cn.fujitsu.com> Signed-off-by: Andreas Färber <afaer...@suse.de> --- include/sysemu/memory_mapping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/memory_mapping.h b/include/sysemu/memory_mapping.h index 06a08e9..0a418a7 100644 --- a/include/sysemu/memory_mapping.h +++ b/include/sysemu/memory_mapping.h @@ -19,7 +19,7 @@ /* The physical and virtual address in the memory mapping are contiguous. */ typedef struct MemoryMapping { hwaddr phys_addr; - target_ulong virt_addr; + hwaddr virt_addr; ram_addr_t length; QTAILQ_ENTRY(MemoryMapping) next; } MemoryMapping; -- 1.8.1.4