From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKfP0-0007H0-F0 for qemu-devel@nongnu.org; Mon, 03 Mar 2014 21:48:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKfOp-0000oQ-MR for qemu-devel@nongnu.org; Mon, 03 Mar 2014 21:48:18 -0500 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:56553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKfOp-0000oK-EZ for qemu-devel@nongnu.org; Mon, 03 Mar 2014 21:48:07 -0500 Received: by mail-pa0-f42.google.com with SMTP id fb1so3073055pad.15 for ; Mon, 03 Mar 2014 18:48:06 -0800 (PST) From: Xuebing Wang Date: Tue, 4 Mar 2014 10:47:24 +0800 Message-Id: <1393901250-3922-5-git-send-email-xbing6@gmail.com> In-Reply-To: <1393901250-3922-1-git-send-email-xbing6@gmail.com> References: <1393901250-3922-1-git-send-email-xbing6@gmail.com> Subject: [Qemu-devel] [Discussion 04/10] memory_mapping: make this architecture-independent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, xbing6@gmail.com, afaerber@suse.de, stefanha@redhat.com Use vaddr (instead of target_ulong) for virtual address. See document HACKING for more information about vaddr and target_ulong. Signed-off-by: Xuebing Wang --- include/sysemu/memory_mapping.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sysemu/memory_mapping.h b/include/sysemu/memory_mapping.h index a75d59a..4a5f7be 100644 --- a/include/sysemu/memory_mapping.h +++ b/include/sysemu/memory_mapping.h @@ -16,6 +16,7 @@ #include "qemu/queue.h" #include "qemu/typedefs.h" +#include "qom/cpu.h" /* for vaddr */ typedef struct GuestPhysBlock { /* visible to guest, reflects PCI hole, etc */ @@ -39,7 +40,7 @@ typedef struct GuestPhysBlockList { /* The physical and virtual address in the memory mapping are contiguous. */ typedef struct MemoryMapping { hwaddr phys_addr; - target_ulong virt_addr; + vaddr virt_addr; ram_addr_t length; QTAILQ_ENTRY(MemoryMapping) next; } MemoryMapping; -- 1.7.9.5