target/arm: Avoid an extra temporary for store_exclusive
commit37e29a64254bf82a1901784fcca17c25f8164c2f
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Sep 2017 17:43:18 +0000 (14 18:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Sep 2017 17:43:18 +0000 (14 18:43 +0100)
treead9ca0ec90620e0a08a5887939e29ce28b22bbcf
parentdddbba9943ef6a81c8702e4a50cb0a8b1a4201fe
target/arm: Avoid an extra temporary for store_exclusive

Instead of copying addr to a local temp, reuse the value (which we
have just compared as equal) already saved in cpu_exclusive_addr.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 20170908163859.29820-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate-a64.c