summaryrefslogtreecommitdiffstats
path: root/accel
diff options
context:
space:
mode:
authorRichard Henderson2019-09-23 23:14:31 +0200
committerRichard Henderson2019-09-25 19:23:45 +0200
commit86b7b9c507b52a430fe3c644c0afbc6adfb92869 (patch)
treefaa8ad3476226c19a21368fafc22428afc6f0d20 /accel
parentqemu/compiler.h: Add qemu_build_not_reached (diff)
downloadqemu-86b7b9c507b52a430fe3c644c0afbc6adfb92869.tar.gz
qemu-86b7b9c507b52a430fe3c644c0afbc6adfb92869.tar.xz
qemu-86b7b9c507b52a430fe3c644c0afbc6adfb92869.zip
cputlb: Use qemu_build_not_reached in load/store_helpers
Increase the current runtime assert to a compile-time assert. Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r--accel/tcg/cputlb.c5
1 files changed, 2 insertions, 3 deletions
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();
}
}