]> git.proxmox.com Git - mirror_qemu.git/commitdiff
memory_mapping: Move MemoryMappingList typedef to qemu/typedefs.h
authorAndreas Färber <afaerber@suse.de>
Tue, 28 May 2013 12:20:15 +0000 (14:20 +0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 11 Jun 2013 15:58:03 +0000 (17:58 +0200)
This will avoid issues with hwaddr and ram_addr_t when including
sysemu/memory_mapping.h for CONFIG_USER_ONLY, e.g., from qom/cpu.h.

Signed-off-by: Andreas Färber <afaerber@suse.de>
include/qemu/typedefs.h
include/sysemu/memory_mapping.h

index afe4ec76e19a28bab7caa2696384836f3cc8ed53..698fc03d781b48c8bcedb8203fc041dcdd62a1d4 100644 (file)
@@ -22,6 +22,8 @@ typedef struct AddressSpace AddressSpace;
 typedef struct MemoryRegion MemoryRegion;
 typedef struct MemoryRegionSection MemoryRegionSection;
 
+typedef struct MemoryMappingList MemoryMappingList;
+
 typedef struct NICInfo NICInfo;
 typedef struct HCIInfo HCIInfo;
 typedef struct AudioState AudioState;
index 6f01524451eb4e1b9c1dae510d06ed39f13b5bff..1f71c327b1025559e32630c0473579dee6dbbd36 100644 (file)
@@ -15,6 +15,7 @@
 #define MEMORY_MAPPING_H
 
 #include "qemu/queue.h"
+#include "qemu/typedefs.h"
 
 /* The physical and virtual address in the memory mapping are contiguous. */
 typedef struct MemoryMapping {
@@ -24,11 +25,11 @@ typedef struct MemoryMapping {
     QTAILQ_ENTRY(MemoryMapping) next;
 } MemoryMapping;
 
-typedef struct MemoryMappingList {
+struct MemoryMappingList {
     unsigned int num;
     MemoryMapping *last_mapping;
     QTAILQ_HEAD(, MemoryMapping) head;
-} MemoryMappingList;
+};
 
 int cpu_get_memory_mapping(MemoryMappingList *list, CPUArchState *env);