From 239fda311a6f7784bc4f732795722c909b835651 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 3 Jun 2010 19:29:31 +0200 Subject: 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 --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec.c') 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)); } -- cgit v1.2.3