diff options
author | Richard Henderson | 2022-05-01 07:49:48 +0200 |
---|---|---|
committer | Peter Maydell | 2022-05-05 10:35:51 +0200 |
commit | d385a60571487d9409f247d07aac94d1ee40f9fe (patch) | |
tree | bac12f154f3f1d0a37618264a65e3c81e29927a4 /target/arm/translate-a64.c | |
parent | target/arm: Reorg ARMCPRegInfo type field bits (diff) | |
download | qemu-d385a60571487d9409f247d07aac94d1ee40f9fe.tar.gz qemu-d385a60571487d9409f247d07aac94d1ee40f9fe.tar.xz qemu-d385a60571487d9409f247d07aac94d1ee40f9fe.zip |
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>
Diffstat (limited to 'target/arm/translate-a64.c')
-rw-r--r-- | target/arm/translate-a64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index a82f5d5984..b80313670f 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -6151,7 +6151,7 @@ static void handle_fp_1src_half(DisasContext *s, int opcode, int rd, int rn) gen_helper_advsimd_rinth(tcg_res, tcg_op, fpst); break; default: - abort(); + g_assert_not_reached(); } write_fp_sreg(s, rd, tcg_res); @@ -6392,7 +6392,7 @@ static void handle_fp_fcvt(DisasContext *s, int opcode, break; } default: - abort(); + g_assert_not_reached(); } } |