1*4882a593SmuzhiyunFrom ea9ee4dd64ee88e03a959b2c694aa8feb53c7e78 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: He Zhe <zhe.he@windriver.com>
3*4882a593SmuzhiyunDate: Wed, 28 Sep 2022 16:47:24 +0800
4*4882a593SmuzhiyunSubject: [PATCH] stress-cpu: disable float128 math on powerpc64 to avoid
5*4882a593Smuzhiyun SIGILL
6*4882a593Smuzhiyun
7*4882a593Smuzhiyunfloat128 requires instructions of xsmaddqp and xsmsubqp which are added to
8*4882a593Smuzhiyunqemu since v7.0 by the following commit.
9*4882a593Smuzhiyunhttps://github.com/qemu/qemu/commit/3bb1aed246d7b59ceee625a82628f7369d492a8f
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunWhile kirkstone is still at v6.2 and thus experiences SIGILL as follow
12*4882a593Smuzhiyunroot@qemuppc64:~# stress-ng --cpu 2 --timeout 30s
13*4882a593Smuzhiyunstress-ng: info: [972] setting to a 30 second run per stressor
14*4882a593Smuzhiyunstress-ng: info: [972] dispatching hogs: 2 cpu
15*4882a593Smuzhiyunstress-ng: info: [973] stressor terminated with unexpected signal signal 4 'SIGILL'
16*4882a593Smuzhiyun<snip>
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunUpstream-Status: Inappropriate [This is specific to kirkstone since qemu on
19*4882a593Smuzhiyunmaster branch has upgraded to v7.1.]
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunSigned-off-by: He Zhe <zhe.he@windriver.com>
22*4882a593Smuzhiyun---
23*4882a593Smuzhiyun stress-cpu.c | 4 ++++
24*4882a593Smuzhiyun 1 file changed, 4 insertions(+)
25*4882a593Smuzhiyun
26*4882a593Smuzhiyundiff --git a/stress-cpu.c b/stress-cpu.c
27*4882a593Smuzhiyunindex 0a08f1d1..2849e715 100644
28*4882a593Smuzhiyun--- a/stress-cpu.c
29*4882a593Smuzhiyun+++ b/stress-cpu.c
30*4882a593Smuzhiyun@@ -41,6 +41,10 @@
31*4882a593Smuzhiyun #undef HAVE_FLOAT_DECIMAL128
32*4882a593Smuzhiyun #endif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun+#if defined(STRESS_ARCH_PPC64)
35*4882a593Smuzhiyun+#undef HAVE_FLOAT128
36*4882a593Smuzhiyun+#endif
37*4882a593Smuzhiyun+
38*4882a593Smuzhiyun #define GAMMA 		(0.57721566490153286060651209008240243104215933593992L)
39*4882a593Smuzhiyun #define OMEGA		(0.56714329040978387299996866221035554975381578718651L)
40*4882a593Smuzhiyun #define PSI		(3.35988566624317755317201130291892717968890513373197L)
41*4882a593Smuzhiyun--
42*4882a593Smuzhiyun2.25.1
43*4882a593Smuzhiyun
44