translate-all: remove redundant setting of tcg_ctx.code_gen_buffer_size

The setting of tcg_ctx.code_gen_buffer_size is done by the only caller of
size_code_gen_buffer(), which is code_gen_alloc():

$ git grep size_code_gen_buffer
translate-all.c:static inline size_t size_code_gen_buffer(size_t tb_size)
translate-all.c: tcg_ctx.code_gen_buffer_size = size_code_gen_buffer(tb_size);

Backports commit 835154b6e2200460f04719d0028716a37c178368 from qemu
This commit is contained in:
Emilio G. Cota 2018-02-23 20:44:14 -05:00 committed by Lioncash
parent c5b234ed1f
commit 9a2b02b241
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -515,7 +515,6 @@ static inline size_t size_code_gen_buffer(struct uc_struct *uc, size_t tb_size)
if (tb_size > MAX_CODE_GEN_BUFFER_SIZE) {
tb_size = MAX_CODE_GEN_BUFFER_SIZE;
}
tcg_ctx->code_gen_buffer_size = tb_size;
return tb_size;
}