mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
TCG op size estimation fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4154 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
663715fbe2
commit
a208e54a2f
3 changed files with 10 additions and 0 deletions
3
exec.c
3
exec.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue