48 lines
1.9 KiB
Diff
48 lines
1.9 KiB
Diff
|
|
From 06da30c93dfd4cff013881582d25c3d04456376b Mon Sep 17 00:00:00 2001
|
||
|
|
From: gubin <gubin_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Thu, 2 Jan 2025 10:40:17 +0800
|
||
|
|
Subject: [PATCH] target/arm: Use float_status copy in sme_fmopa_s
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
cherry-pick from 31d93fedf41c24b0badb38cd9317590d1ef74e37
|
||
|
|
|
||
|
|
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>
|
||
|
|
Signed-off-by: gubin <gubin_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
target/arm/tcg/sme_helper.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/target/arm/tcg/sme_helper.c b/target/arm/tcg/sme_helper.c
|
||
|
|
index 9a9b1a240c..ae4f39ed02 100644
|
||
|
|
--- a/target/arm/tcg/sme_helper.c
|
||
|
|
+++ b/target/arm/tcg/sme_helper.c
|
||
|
|
@@ -916,7 +916,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;
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|