diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-31 17:07:36 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-31 17:07:36 +0000 |
commit | a208e54a2f97494ccb5f7ba0b852cc1e308ab668 (patch) | |
tree | c40abd09789d1f23b4714c91780bc48f834bb5ef /exec.c | |
parent | 663715fbe2f63d651458179952f70769ab38f6f9 (diff) | |
download | hqemu-a208e54a2f97494ccb5f7ba0b852cc1e308ab668.zip hqemu-a208e54a2f97494ccb5f7ba0b852cc1e308ab668.tar.gz |
TCG op size estimation fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4154 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -367,6 +367,9 @@ void tb_flush(CPUState *env1) nb_tbs, nb_tbs > 0 ? ((unsigned long)(code_gen_ptr - code_gen_buffer)) / nb_tbs : 0); #endif + if ((unsigned long)(code_gen_ptr - code_gen_buffer) > CODE_GEN_BUFFER_SIZE) + cpu_abort(env1, "Internal error: code buffer overflow\n"); + nb_tbs = 0; for(env = first_cpu; env != NULL; env = env->next_cpu) { |