mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/arm: Avoid bare abort() or assert(0)
Standardize on g_assert_not_reached() for "should not happen". Retain abort() when preceeded by fprintf or error_report. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220501055028.646596-7-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
87c3f0f2f7
commit
d385a60571
8 changed files with 15 additions and 16 deletions
|
@ -661,7 +661,7 @@ static int cpu_pre_save(void *opaque)
|
|||
if (kvm_enabled()) {
|
||||
if (!write_kvmstate_to_list(cpu)) {
|
||||
/* This should never fail */
|
||||
abort();
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -672,7 +672,7 @@ static int cpu_pre_save(void *opaque)
|
|||
} else {
|
||||
if (!write_cpustate_to_list(cpu, false)) {
|
||||
/* This should never fail. */
|
||||
abort();
|
||||
g_assert_not_reached();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue