target/arm: Consolidate cpreg updates in add_cpreg_to_hashtable
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 1 May 2022 05:49:56 +0000 (22:49 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 May 2022 08:35:51 +0000 (09:35 +0100)
commitcc946d96694e47d30c59dbf20f79f53522cc8265
tree7c5ac73bb15009d1c51cf3f6356fd43c6bf96527
parentcac65299a403b34e57a2230c2b695bdb6d84f396
target/arm: Consolidate cpreg updates in add_cpreg_to_hashtable

Put most of the value writeback to the same place,
and improve the comment that goes with them.

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