From: Pierrick Bouvier Date: Thu, 19 Sep 2024 04:46:09 +0000 (-0700) Subject: hw/arm: replace assert(0) with g_assert_not_reached() X-Git-Tag: v9.2.0-rc0~72^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42bf363cc084871797fdb593b372770a7e48caa7;p=thirdparty%2Fqemu.git hw/arm: replace assert(0) with g_assert_not_reached() This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-ID: <20240919044641.386068-3-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth --- diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index 6915eb63c75..f103921d495 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -199,7 +199,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id) machine->cpu_type = ARM_CPU_TYPE_NAME("cortex-a15"); break; default: - assert(0); + g_assert_not_reached(); } for (n = 0; n < smp_cpus; n++) {