OSDN Git Service

translate-all: discard TB when tb_link_page returns an existing matching TB
authorEmilio G. Cota <cota@braap.org>
Tue, 1 Aug 2017 19:40:16 +0000 (15:40 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 15 Jun 2018 18:18:42 +0000 (08:18 -1000)
commit95590e24af11236ef334f6bc3e2b71404a790ddb
tree76e03c0f097bd05f4921fdc6cbe067cc9e2e598e
parentfaa9372c07d062eb01f9da72e3f6c0f32efffca7
translate-all: discard TB when tb_link_page returns an existing matching TB

Use the recently-gained QHT feature of returning the matching TB if it
already exists. This allows us to get rid of the lookup we perform
right after acquiring tb_lock.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
accel/tcg/translate-all.c
docs/devel/multi-thread-tcg.txt