target/arm: Hoist store to cs_base in cpu_get_tb_cpu_state
commit9b253fe5544672a48a4c22fb1535a7f581321871
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Oct 2019 15:00:47 +0000 (23 11:00 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Oct 2019 16:16:28 +0000 (24 17:16 +0100)
treefb2a4014876c4a54d776afe40b3c3758436131c6
parent164690b29f9eaf69fe641859bc9f8954f12e691d
target/arm: Hoist store to cs_base in cpu_get_tb_cpu_state

By performing this store early, we avoid having to save and restore
the register holding the address around any function calls.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191023150057.25731-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c