]> git.proxmox.com Git - mirror_qemu.git/commit - hw/alpha/dp264.c
hw: Don't use hw_error() for machine initialization errors
authorMarkus Armbruster <armbru@redhat.com>
Thu, 17 Dec 2015 16:35:09 +0000 (17:35 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 13 Jan 2016 10:58:58 +0000 (11:58 +0100)
commitc525436e69bb7e74ca96982a40b8ead037186049
treedeba652f822c68c7eff9dd92af502a1848a1e8e8
parent6231a6da9f40c3a33589402c9c57557e3a4f05ad
hw: Don't use hw_error() for machine initialization errors

Printing CPU registers is not helpful during machine initialization.
Moreover, these are straightforward configuration or "can get
resources" errors, so dumping core isn't appropriate either.  Replace
hw_error() by error_report(); exit(1).  Matches how we report these
errors in other machine initializations.

Cc: Richard Henderson <rth@twiddle.net>
Cc: qemu-arm@nongnu.org
Cc: qemu-ppc@nongnu.org
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1450370121-5768-2-git-send-email-armbru@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
hw/alpha/dp264.c
hw/arm/highbank.c
hw/char/exynos4210_uart.c
hw/m68k/an5206.c
hw/ppc/mac_newworld.c
hw/ppc/mac_oldworld.c
hw/ppc/prep.c
hw/unicore32/puv3.c