Peter Maydell c88bc3e0db hw/arm/virt: Check that the CPU realize method succeeded
We were passing a NULL error pointer to the object_property_set_bool()
call that realizes the CPU object. This meant that we wouldn't detect
failure, and would plough blindly on to crash later trying to use a
NULL CPU object pointer. Detect errors and fail instead.

In particular, this will be necessary to detect the user error
of using "-cpu host" without "-enable-kvm" once we make the host
CPU type be registered unconditionally rather than only in
kvm_arch_init().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-01-25 11:45:30 +00:00
..
2018-01-08 11:18:23 +01:00
2018-01-19 11:18:51 -02:00
2018-01-24 22:55:57 +00:00
2018-01-19 11:18:51 -02:00
2018-01-25 11:45:28 +00:00
2017-12-18 17:07:03 +03:00