mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 02:35:13 +00:00
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:
parent
c5b234ed1f
commit
9a2b02b241
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue