hw/arm/virt: Fix property "gic-version" error handling
commit7b55044f9d96ec518e7ab58bd8a3637b52a35f79
authorMarkus Armbruster <armbru@redhat.com>
Thu, 17 Dec 2015 16:35:15 +0000 (17 17:35 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 13 Jan 2016 10:58:58 +0000 (13 11:58 +0100)
treee2fc39247c299d290a31458e981a20ab2b073515
parent543202c0ddbcc4ee97d82fe45356e1ab00093f90
hw/arm/virt: Fix property "gic-version" error handling

virt_set_gic_version() calls exit(1) when passed an invalid property
value.  Property setters are not supposed to do that.  Screwed up in
commit b92ad39.  Harmless, because the property belongs to a machine.
Set an error object instead.

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c