tcg: Fix occasional TCG broken problem when ldst optimization enabled
authorYeongkyoon Lee <yeongkyoon.lee@samsung.com>
Sat, 23 Mar 2013 09:52:18 +0000 (18:52 +0900)
committerYeongkyoon Lee <yeongkyoon.lee@samsung.com>
Mon, 25 Mar 2013 13:15:43 +0000 (22:15 +0900)
commit4f7b6cbccd812fd12bcddc851a3e949d2f1e3af3
treea5cc6e036d00f156057c1ec7ace19f7af8a6edfb
parent943455cee7e33098c4de0b34a8e845c85d2cacd3
tcg: Fix occasional TCG broken problem when ldst optimization enabled

is_tcg_gen_code() checks the upper limit of TCG generated code range wrong, so
that TCG could get broken occasionally only when CONFIG_QEMU_LDST_OPTIMIZATION
enabled. The reason is code_gen_buffer_max_size does not cover the upper range
up to (TCG_MAX_OP_SIZE * OPC_BUF_SIZE), thus code_gen_buffer_max_size should be
modified to code_gen_buffer_size.

This patch has been already applied to mainstream QEMU.
So it should be overwritten when applying QEMU version more than 1.3 in future.

Signed-off-by: Yeongkyoon Lee <yeongkyoon.lee@samsung.com>
exec.c