summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-06-03 19:29:31 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-06-09 16:10:50 +0200
commit239fda311a6f7784bc4f732795722c909b835651 (patch)
tree902189f0c4ba2df299614e1f88cb1b454db6471c /exec.c
parent590bf491a49670843ee902c47f7ab1de5e9acd06 (diff)
tcg: get rid of copy_size in TCGOpDef
copy_size is a left-over from the dyngen era, remove it. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index bb3dcadcde..aedfda4e04 100644
--- a/exec.c
+++ b/exec.c
@@ -557,7 +557,7 @@ static void code_gen_alloc(unsigned long tb_size)
#endif /* !USE_STATIC_CODE_GEN_BUFFER */
map_exec(code_gen_prologue, sizeof(code_gen_prologue));
code_gen_buffer_max_size = code_gen_buffer_size -
- code_gen_max_block_size();
+ (TCG_MAX_OP_SIZE * OPC_MAX_SIZE);
code_gen_max_blocks = code_gen_buffer_size / CODE_GEN_AVG_BLOCK_SIZE;
tbs = qemu_malloc(code_gen_max_blocks * sizeof(TranslationBlock));
}