aboutsummaryrefslogtreecommitdiff
path: root/hw/mips/mipssim.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-22 15:34:58 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-05 16:20:15 +0100
commit1eb64c39d093a20f773e87fd4d0509a33476c707 (patch)
tree781c8eefe8fe8d8f2750955284dd7f3093a78837 /hw/mips/mipssim.c
parent989f31658e1e64bf9848c395af0c7a7b47fa5cbf (diff)
downloadqemu-1eb64c39d093a20f773e87fd4d0509a33476c707.zip
qemu-1eb64c39d093a20f773e87fd4d0509a33476c707.tar.gz
qemu-1eb64c39d093a20f773e87fd4d0509a33476c707.tar.bz2
hw/mips: Inline 'bios.h' definitions
There is no universal BIOS, each machine needs a specific one. Move the machine-specific definitions to each machine code and remove this bogus header. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20231122184334.18201-1-philmd@linaro.org>
Diffstat (limited to 'hw/mips/mipssim.c')
-rw-r--r--hw/mips/mipssim.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/hw/mips/mipssim.c b/hw/mips/mipssim.c
index 4f743f3..01e3239 100644
--- a/hw/mips/mipssim.c
+++ b/hw/mips/mipssim.c
@@ -35,7 +35,6 @@
#include "net/net.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"
-#include "hw/mips/bios.h"
#include "hw/loader.h"
#include "elf.h"
#include "hw/sysbus.h"
@@ -43,6 +42,15 @@
#include "qemu/error-report.h"
#include "sysemu/qtest.h"
#include "sysemu/reset.h"
+#include "cpu.h"
+
+#define BIOS_SIZE (4 * MiB)
+
+#if TARGET_BIG_ENDIAN
+#define BIOS_FILENAME "mips_bios.bin"
+#else
+#define BIOS_FILENAME "mipsel_bios.bin"
+#endif
static struct _loaderparams {
int ram_size;