tcg: Init TB's direct jumps before making it visible
commit901bc3deb43bf37c85e43955905d003be7ae5fa5
authorSergey Fedorov <serge.fdrv@gmail.com>
Tue, 22 Mar 2016 16:00:12 +0000 (22 19:00 +0300)
committerRichard Henderson <rth@twiddle.net>
Fri, 13 May 2016 00:06:41 +0000 (12 14:06 -1000)
tree6c4f5d0d6ff6d4fd3f4ea9f00839f3e2c65ec100
parente90d96b158665a684ab89b4f002838034b5fafc8
tcg: Init TB's direct jumps before making it visible

Initialize TB's direct jump list data fields and reset the jumps before
tb_link_page() puts it into the physical hash table and the physical
page list. So TB is completely initialized before it becomes visible.

This is pure rearrangement of code to a more suitable place, though it
could be a preparation for relaxing the locking scheme in future.

Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
translate-all.c