From 83aa10f77d1e277754aec25304fb0f211314cc09 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Thu, 15 Feb 2018 10:59:16 -0500 Subject: [PATCH] arm: Remove hw_error() usages. All of these hw_errors are fatal and indicate something wrong with QEMU implementation. Convert to g_assert_not_reached. Backports commit 8f6fd322f6e25995629a1a07b56bc5b91fb947ca from qemu --- qemu/target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target-arm/helper.c b/qemu/target-arm/helper.c index 74bcbb75..ad63327d 100644 --- a/qemu/target-arm/helper.c +++ b/qemu/target-arm/helper.c @@ -4370,7 +4370,7 @@ int bank_number(int mode) case ARM_CPU_MODE_MON: return 7; } - //hw_error("bank number requested for bad CPSR mode value 0x%x\n", mode); + g_assert_not_reached(); } void switch_mode(CPUARMState *env, int mode)