projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560e36d
)
cputlb: Use qemu_build_not_reached in load/store_helpers
author
Richard Henderson
<richard.henderson@linaro.org>
Mon, 23 Sep 2019 21:14:31 +0000
(14:14 -0700)
committer
Richard Henderson
<richard.henderson@linaro.org>
Wed, 25 Sep 2019 17:23:45 +0000
(10:23 -0700)
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>
accel/tcg/cputlb.c
patch
|
blob
|
history
diff --git
a/accel/tcg/cputlb.c
b/accel/tcg/cputlb.c
index 2222b877640554852ac38f495a151f9947580b22..e31378bce3180c4e9059b35c31765d76e673117e 100644
(file)
--- 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();
}
}