diff options
Diffstat (limited to 'hw/mips/mipssim.c')
-rw-r--r-- | hw/mips/mipssim.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/mips/mipssim.c b/hw/mips/mipssim.c index f0042f7f43..afef4f2e77 100644 --- a/hw/mips/mipssim.c +++ b/hw/mips/mipssim.c @@ -77,11 +77,7 @@ static int64_t load_kernel(void) (uint64_t *)&entry, NULL, (uint64_t *)&kernel_high, NULL, big_endian, EM_MIPS, 1, 0); - if (kernel_size >= 0) { - if ((entry & ~0x7fffffffULL) == 0x80000000) { - entry = (int32_t)entry; - } - } else { + if (kernel_size < 0) { error_report("could not load kernel '%s': %s", loaderparams.kernel_filename, load_elf_strerror(kernel_size)); |