diff options
author | Daniyal Khan <danikhan632@gmail.com> | 2024-07-17 16:01:47 +1000 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-07-19 19:59:39 +0300 |
commit | be735533d5e95677992c9bda7bc99e9238dd0250 (patch) | |
tree | 91c5e159487c2ad0fbf58ca90316164a59d5f3bb | |
parent | faa3b6d6782d8202fc3f326f1ae73935adf7a62c (diff) |
target/arm: Use float_status copy in sme_fmopa_s
We made a copy above because the fp exception flags
are not propagated back to the FPST register, but
then failed to use the copy.
Cc: qemu-stable@nongnu.org
Fixes: 558e956c719 ("target/arm: Implement FMOPA, FMOPS (non-widening)")
Signed-off-by: Daniyal Khan <danikhan632@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20240717060149.204788-2-richard.henderson@linaro.org
[rth: Split from a larger patch]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 31d93fedf41c24b0badb38cd9317590d1ef74e37)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | target/arm/sme_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/sme_helper.c b/target/arm/sme_helper.c index d592c78ec9..e55bc51d69 100644 --- a/target/arm/sme_helper.c +++ b/target/arm/sme_helper.c @@ -949,7 +949,7 @@ void HELPER(sme_fmopa_s)(void *vza, void *vzn, void *vzm, void *vpn, if (pb & 1) { uint32_t *a = vza_row + H1_4(col); uint32_t *m = vzm + H1_4(col); - *a = float32_muladd(n, *m, *a, 0, vst); + *a = float32_muladd(n, *m, *a, 0, &fpst); } col += 4; pb >>= 4; |