hw/core/null-machine: Print error message when using the -kernel parameter
commit991db247745c1de161d665f847fd28618212f2e8
authorThomas Huth <thuth@redhat.com>
Tue, 28 Feb 2017 08:52:51 +0000 (28 09:52 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 20 Apr 2017 18:22:41 +0000 (20 15:22 -0300)
treeabba0264cc85db819058de030063ddbc065ac8dd
parent36cccb8c575b74a691f685911fbb0301af19f924
hw/core/null-machine: Print error message when using the -kernel parameter

If the user currently tries to use the -kernel parameter, simply nothing
happens, and the user might get confused that there is nothing loaded
to memory, but also no error message has been issued. Since there is no
real generic way to load a kernel on all CPU types (but on some targets,
the generic loader can be used instead), issue an appropriate error
message here now to avoid the possible confusion.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1488271971-12624-1-git-send-email-thuth@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/null-machine.c