target/arm: Hoist computation of key in add_cpreg_to_hashtable
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 1 May 2022 05:49:55 +0000 (22:49 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 May 2022 08:35:51 +0000 (09:35 +0100)
commitcac65299a403b34e57a2230c2b695bdb6d84f396
treee71fedab1c993a962c44919dd737241f0c2b99ba
parentc27f5d3a83ed2959a6a1947708b588a6774a2aec
target/arm: Hoist computation of key in add_cpreg_to_hashtable

Move the computation of key to the top of the function.
Hoist the resolution of cp as well, as an input to the
computation of key.

This will be required by a subsequent patch.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220501055028.646596-14-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c