hw/mips: malta: Don't boot from flash with KVM T&E
authorJames Hogan <james.hogan@imgtec.com>
Fri, 20 Jun 2014 11:47:59 +0000 (12:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Jun 2014 11:51:29 +0000 (13:51 +0200)
commit3c5d0be553b18d47361ac3a701e2bff86b8256b0
treef48a01373a8b515d467de828427e32d444c7565e
parenta31896c411b096dfccee69c338aebb871d4fb80e
hw/mips: malta: Don't boot from flash with KVM T&E

In KVM trap & emulate (T&E) mode the flash reset region at 0xbfc00000
isn't executable, which is why the minimal kernel bootloader is loaded
and executed from the last 1MB of DRAM instead.

Therefore if no kernel is provided on the command line and KVM is
enabled, exit with an error since booting from flash will fail.

Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/mips/mips_malta.c