]> git.proxmox.com Git - mirror_qemu.git/commitdiff
move MemMapEntry
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Sep 2020 10:42:45 +0000 (12:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 30 Sep 2020 09:29:56 +0000 (11:29 +0200)
It is defined twice already.  Move to a common header file to
remove duplication and make it available to everybody.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20200928104256.9241-2-kraxel@redhat.com

hw/arm/sbsa-ref.c
include/exec/hwaddr.h
include/hw/arm/virt.h

index 257ada9425506f3fadc4cae3596f3067a9148fa0..9c3a893bedfd394bddba0f9e9d86792647814a06 100644 (file)
@@ -80,11 +80,6 @@ enum {
     SBSA_EHCI,
 };
 
-typedef struct MemMapEntry {
-    hwaddr base;
-    hwaddr size;
-} MemMapEntry;
-
 struct SBSAMachineState {
     MachineState parent;
     struct arm_boot_info bootinfo;
index a71c93cc810aa18d5ddefc8d970ddb3b95409ede..8f16d179a88599dcd8b82aaafbc80193f4d3f846 100644 (file)
@@ -18,4 +18,9 @@ typedef uint64_t hwaddr;
 #define HWADDR_PRIx PRIx64
 #define HWADDR_PRIX PRIX64
 
+typedef struct MemMapEntry {
+    hwaddr base;
+    hwaddr size;
+} MemMapEntry;
+
 #endif
index d018a4f29788d22704824e5ffa8e50ae57977647..655b895d5eba6e18137281c5a0a52fd4ca5c6b3e 100644 (file)
@@ -111,11 +111,6 @@ typedef enum VirtGICType {
     VIRT_GIC_VERSION_NOSEL,
 } VirtGICType;
 
-typedef struct MemMapEntry {
-    hwaddr base;
-    hwaddr size;
-} MemMapEntry;
-
 struct VirtMachineClass {
     MachineClass parent;
     bool disallow_affinity_adjustment;