]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/loader: Restrict PC_ROM_* definitions to hw/i386/pc
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 17 Sep 2021 18:59:49 +0000 (20:59 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 27 Sep 2021 08:57:21 +0000 (10:57 +0200)
The PC_ROM_* definitions are only used by the PC machine,
and are irrelevant to the other architectures / machines.
Reduce their scope by moving them to hw/i386/pc.c.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210917185949.2244956-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/i386/pc.c
include/hw/loader.h

index 7e523b913caa90f0713c8d96eaa6a0a11701eeeb..557d49c9f8f1e7cd456f0f8c555456c40430abaa 100644 (file)
@@ -843,6 +843,12 @@ void xen_load_linux(PCMachineState *pcms)
     x86ms->fw_cfg = fw_cfg;
 }
 
+#define PC_ROM_MIN_VGA     0xc0000
+#define PC_ROM_MIN_OPTION  0xc8000
+#define PC_ROM_MAX         0xe0000
+#define PC_ROM_ALIGN       0x800
+#define PC_ROM_SIZE        (PC_ROM_MAX - PC_ROM_MIN_VGA)
+
 void pc_memory_init(PCMachineState *pcms,
                     MemoryRegion *system_memory,
                     MemoryRegion *rom_memory,
index cbfc1848737c88d9800de758774a639decf000cd..81104cb02fedd3bb1e45087bae4deea2f06b4336 100644 (file)
@@ -336,12 +336,6 @@ void hmp_info_roms(Monitor *mon, const QDict *qdict);
 #define rom_add_blob_fixed_as(_f, _b, _l, _a, _as)      \
     rom_add_blob(_f, _b, _l, _l, _a, NULL, NULL, NULL, _as, true)
 
-#define PC_ROM_MIN_VGA     0xc0000
-#define PC_ROM_MIN_OPTION  0xc8000
-#define PC_ROM_MAX         0xe0000
-#define PC_ROM_ALIGN       0x800
-#define PC_ROM_SIZE        (PC_ROM_MAX - PC_ROM_MIN_VGA)
-
 int rom_add_vga(const char *file);
 int rom_add_option(const char *file, int32_t bootindex);