]> www.infradead.org Git - qemu-nvme.git/commit
tcg: Tidy tcg_n_regions
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 10 Mar 2021 17:06:17 +0000 (11:06 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 11 Jun 2021 16:27:08 +0000 (09:27 -0700)
commit01afda991971745948633529bf52df8fbf3710d1
tree1b278b4d58f51f3744028cb1e0f5c14fe0d7d6ee
parentc2471ca0defb3b4393ae4ae2d8698ced9613700e
tcg: Tidy tcg_n_regions

Compute the value using straight division and bounds,
rather than a loop.  Pass in tb_size rather than reading
from tcg_init_ctx.code_gen_buffer_size,

Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/region.c