]> git.proxmox.com Git - qemu.git/commitdiff
Remove obsolete BIOS_SIZE from sysemu.h
authorPaul Brook <paul@codesourcery.com>
Tue, 19 May 2009 13:52:42 +0000 (14:52 +0100)
committerPaul Brook <paul@codesourcery.com>
Tue, 19 May 2009 13:52:42 +0000 (14:52 +0100)
BIOS_SIZE is no longer needed by vl.c, so there's no point having it in
sysemu.h.

Signed-off-by: Paul Brook <paul@codesourcery.com>
hw/mips-bios.h [new file with mode: 0644]
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_mipssim.c
hw/mips_r4k.c
hw/ppc405_boards.c
hw/ppc_mac.h
hw/ppc_prep.c
sysemu.h

diff --git a/hw/mips-bios.h b/hw/mips-bios.h
new file mode 100644 (file)
index 0000000..b4b88ac
--- /dev/null
@@ -0,0 +1,8 @@
+#include "cpu.h"
+
+#define BIOS_SIZE (4 * 1024 * 1024)
+#ifdef TARGET_WORDS_BIGENDIAN
+#define BIOS_FILENAME "mips_bios.bin"
+#else
+#define BIOS_FILENAME "mipsel_bios.bin"
+#endif
index 292137fec93817ed0b99a40b70222c9623e9cb6e..49c0b467fc66331895812a23894df039d4b8e736 100644 (file)
 #include "boards.h"
 #include "net.h"
 #include "scsi.h"
-
-#ifdef TARGET_WORDS_BIGENDIAN
-#define BIOS_FILENAME "mips_bios.bin"
-#else
-#define BIOS_FILENAME "mipsel_bios.bin"
-#endif
+#include "mips-bios.h"
 
 enum jazz_model_e
 {
index 747143d3d2547f5a4a94f7c2aff1aaa26def132a..564eaa61142451833da6f3a16e154df0fa97a87a 100644 (file)
 #include "audio/audio.h"
 #include "boards.h"
 #include "qemu-log.h"
+#include "mips-bios.h"
 
 //#define DEBUG_BOARD_INIT
 
-#ifdef TARGET_WORDS_BIGENDIAN
-#define BIOS_FILENAME "mips_bios.bin"
-#else
-#define BIOS_FILENAME "mipsel_bios.bin"
-#endif
-
 #ifdef TARGET_MIPS64
 #define PHYS_TO_VIRT(x) ((x) | ~0x7fffffffULL)
 #else
index 54656ad19478e218e9f1232624a111b33cfc5417..b3f190e21a9d26e9861ba9f9535cc05d8ca0d78a 100644 (file)
 #include "net.h"
 #include "sysemu.h"
 #include "boards.h"
-
-#ifdef TARGET_WORDS_BIGENDIAN
-#define BIOS_FILENAME "mips_bios.bin"
-#else
-#define BIOS_FILENAME "mipsel_bios.bin"
-#endif
+#include "mips-bios.h"
 
 #ifdef TARGET_MIPS64
 #define PHYS_TO_VIRT(x) ((x) | ~0x7fffffffULL)
index aea82cc9ff6b10b15f467c2c43475cc6c047a8cf..9ad8de6746a58d8265f801c9da0ce4958f5b0063 100644 (file)
 #include "boards.h"
 #include "flash.h"
 #include "qemu-log.h"
-
-#ifdef TARGET_WORDS_BIGENDIAN
-#define BIOS_FILENAME "mips_bios.bin"
-#else
-#define BIOS_FILENAME "mipsel_bios.bin"
-#endif
+#include "mips-bios.h"
 
 #define PHYS_TO_VIRT(x) ((x) | ~(target_ulong)0x7fffffff)
 
index bc5f1cf8538a9aba92df2c41c992dc2ce8f9a824..0b4eb9333e18bc18c68b7a388e77d7414ca6df87 100644 (file)
@@ -32,7 +32,6 @@
 #include "qemu-log.h"
 
 #define BIOS_FILENAME "ppc405_rom.bin"
-#undef BIOS_SIZE
 #define BIOS_SIZE (2048 * 1024)
 
 #define KERNEL_LOAD_ADDR 0x00000000
index 74d19a199182260f585b79e2d7a5ddf4e905a353..dc39338e80e633293ff0275c1cde986f201b120f 100644 (file)
@@ -28,6 +28,7 @@
 /* SMP is not enabled, for now */
 #define MAX_CPUS 1
 
+#define BIOS_SIZE     (1024 * 1024)
 #define BIOS_FILENAME "ppc_rom.bin"
 #define VGABIOS_FILENAME "video.x"
 #define NVRAM_SIZE        0x2000
index b98c6c2002b29f70306d02db911890e35fe2adad..a805c293e7f14526999543eb33a6f5bc28f99936 100644 (file)
@@ -41,6 +41,7 @@
 
 #define MAX_IDE_BUS 2
 
+#define BIOS_SIZE (1024 * 1024)
 #define BIOS_FILENAME "ppc_rom.bin"
 #define KERNEL_LOAD_ADDR 0x01000000
 #define INITRD_LOAD_ADDR 0x01800000
index 2ff61946fd0f3fae63beffa26b5e0a72f2c5dace..1e4be530af43be6311079f7a9d9adedba7fe7715 100644 (file)
--- a/sysemu.h
+++ b/sysemu.h
@@ -123,14 +123,6 @@ extern const char *prom_envs[MAX_PROM_ENVS];
 extern unsigned int nb_prom_envs;
 #endif
 
-#if defined (TARGET_PPC)
-#define BIOS_SIZE (1024 * 1024)
-#elif defined (TARGET_SPARC64)
-#define BIOS_SIZE ((512 + 32) * 1024)
-#elif defined(TARGET_MIPS)
-#define BIOS_SIZE (4 * 1024 * 1024)
-#endif
-
 typedef enum {
     IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN,
     IF_COUNT