From: Richard Henderson Date: Mon, 23 Sep 2019 21:14:31 +0000 (-0700) Subject: cputlb: Use qemu_build_not_reached in load/store_helpers X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=86b7b9c507b52a430fe3c644c0afbc6adfb92869;p=qemu.git cputlb: Use qemu_build_not_reached in load/store_helpers Increase the current runtime assert to a compile-time assert. Reviewed-by: David Hildenbrand Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 2222b87764..e31378bce3 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -1396,7 +1396,7 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, res = ldq_le_p(haddr); break; default: - g_assert_not_reached(); + qemu_build_not_reached(); } return res; @@ -1680,8 +1680,7 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val, stq_le_p(haddr, val); break; default: - g_assert_not_reached(); - break; + qemu_build_not_reached(); } }