diff options
author | John Clarke | 2015-11-19 10:30:50 +0100 |
---|---|---|
committer | Richard Henderson | 2015-11-23 13:16:05 +0100 |
commit | 644da9b39e477caa80bab69d2847dfcb468f0d33 (patch) | |
tree | 1401efac15b23075c07e5b8c8a0348d3694df499 /tcg | |
parent | Update version for v2.5.0-rc1 release (diff) | |
download | qemu-644da9b39e477caa80bab69d2847dfcb468f0d33.tar.gz qemu-644da9b39e477caa80bab69d2847dfcb468f0d33.tar.xz qemu-644da9b39e477caa80bab69d2847dfcb468f0d33.zip |
tcg: Fix highwater check
A simple typo in the variable to use when comparing vs the highwater mark.
Reports are that qemu can in fact segfault occasionally due to this mistake.
Signed-off-by: John Clarke <johnc@kirriwa.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2443,7 +2443,7 @@ int tcg_gen_code(TCGContext *s, tcg_insn_unit *gen_code_buf) one operation beginning below the high water mark cannot overrun the buffer completely. Thus we can test for overflow after generating code without having to check during generation. */ - if (unlikely(s->code_gen_ptr > s->code_gen_highwater)) { + if (unlikely((void *)s->code_ptr > s->code_gen_highwater)) { return -1; } } |