]> Git Repo - qemu.git/blobdiff - memory_mapping.h
implement cpu_get_memory_mapping()
[qemu.git] / memory_mapping.h
index 836b0472b61d8ae81db02c3e612a2bfbf0061523..e486d1056e112ea23e08968f0f03e1d3a569bfcf 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "qemu-queue.h"
 
+#ifndef CONFIG_USER_ONLY
 /* The physical and virtual address in the memory mapping are contiguous. */
 typedef struct MemoryMapping {
     target_phys_addr_t phys_addr;
@@ -44,4 +45,9 @@ void memory_mapping_list_free(MemoryMappingList *list);
 
 void memory_mapping_list_init(MemoryMappingList *list);
 
+#else
+
+/* We use MemoryMappingList* in cpu-all.h */
+typedef struct MemoryMappingList MemoryMappingList;
+#endif
 #endif
This page took 0.023181 seconds and 4 git commands to generate.