Patchwork [qom-cpu,1/4] memory_mapping: Use hwaddr type for MemoryMapping virt_addr field

login
register
mail settings
Submitter Andreas Färber
Date May 22, 2013, 1:09 p.m.
Message ID <1369228150-5428-2-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/245610/
State New
Headers show

Comments

Andreas Färber - May 22, 2013, 1:09 p.m.
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 <wency@cn.fujitsu.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 include/sysemu/memory_mapping.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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;