cpu-exec: Move TB chaining into tb_find_fast()
commita0522c7a55cc8ac76d82884cf8e52f76daa664cc
authorSergey Fedorov <serge.fdrv@gmail.com>
Mon, 25 Apr 2016 15:17:30 +0000 (25 18:17 +0300)
committerRichard Henderson <rth@twiddle.net>
Fri, 13 May 2016 00:06:42 +0000 (12 14:06 -1000)
treedd7ea25b77fb21a5d3b80e7dde3e09fb59226718
parent6f789be56d3f38e9214dafcfab3bf9be7191f370
cpu-exec: Move TB chaining into tb_find_fast()

Move tb_add_jump() call and surrounding code from cpu_exec() into
tb_find_fast(). That simplifies cpu_exec() a little by hiding the direct
chaining optimization details into tb_find_fast(). It also allows to
move tb_lock()/tb_unlock() pair into tb_find_fast(), putting it closer
to tb_find_slow() which also manipulates the lock.

Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
[rth: Fixed rebase typo in nochain test.]
cpu-exec.c