Currently everybody uses ELF kernel images with "-kernel" option on pseries machine but QEMU still tries to boot from an image even it fails to recognize it is ELF. This produces undefined behaviour if the user tries a kernel image compiled for another architecture.
This removes support of raw kernel images. Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru> --- hw/ppc/spapr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 5b21562..851ce4b 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1313,11 +1313,6 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args) kernel_le = kernel_size > 0; } if (kernel_size < 0) { - kernel_size = load_image_targphys(kernel_filename, - KERNEL_LOAD_ADDR, - load_limit - KERNEL_LOAD_ADDR); - } - if (kernel_size < 0) { fprintf(stderr, "qemu: could not load kernel '%s'\n", kernel_filename); exit(1); -- 1.8.4.rc4