tcg: Centralize updates to reg_to_temp
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 1 Dec 2022 09:05:05 +0000 (01:05 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Jan 2023 00:20:01 +0000 (16:20 -0800)
commit098859f108af3e7f96efe6eeb1418f693e5e64ce
tree6f216ec7c84d0833f9cfc8863e837e28590cf64c
parent36f5539cfd3f09444657e4c1f6b6b461cea2235f
tcg: Centralize updates to reg_to_temp

Create two new functions, set_temp_val_{reg,nonreg}.
Assert that the reg_to_temp mapping is correct before
any changes are made.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c