mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
mips: revert commit b332d24a8e
Now that this code path is not triggered anymore during the tests,
revert commit b332d24a8e
. Booting a MIPS
target without kernel nor bios doesn't really make sense. At the same
time replace fprintf(stderr, ...) by error_report().
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
85711e6baf
commit
2e985fe000
4 changed files with 14 additions and 9 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "elf.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "qemu/error-report.h"
|
||||
|
||||
static struct _loaderparams {
|
||||
int ram_size;
|
||||
|
@ -191,9 +192,9 @@ mips_mipssim_init(QEMUMachineInitArgs *args)
|
|||
}
|
||||
if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
|
||||
/* Bail out if we have neither a kernel image nor boot vector code. */
|
||||
fprintf(stderr,
|
||||
"qemu: Warning, could not load MIPS bios '%s', and no -kernel argument was specified\n",
|
||||
filename);
|
||||
error_report("Could not load MIPS bios '%s', and no "
|
||||
"-kernel argument was specified", filename);
|
||||
exit(1);
|
||||
} else {
|
||||
/* We have a boot vector start address. */
|
||||
env->active_tc.PC = (target_long)(int32_t)0xbfc00000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue