diff mbox series

[PULL,SUBSYSTEM,s390x,1/3] tests/tcg/s390x: Fix alignment of csst parameter list

Message ID 20190621134338.8425-2-david@redhat.com
State New
Headers show
Series [PULL,SUBSYSTEM,s390x,1/3] tests/tcg/s390x: Fix alignment of csst parameter list | expand

Commit Message

David Hildenbrand June 21, 2019, 1:43 p.m. UTC
From: Richard Henderson <richard.henderson@linaro.org>


The parameter list given in general register 1 shall be aligned
on a quadword boundary.  This test currently succeeds or fails
depending on the compiler version used and the accidential layout
of the function's stack frame.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: David Hildenbrand <david@redhat.com>

Signed-off-by: David Hildenbrand <david@redhat.com>

---
 tests/tcg/s390x/csst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.21.0
diff mbox series

Patch

diff --git a/tests/tcg/s390x/csst.c b/tests/tcg/s390x/csst.c
index 1dae9071fb..084d80af49 100644
--- a/tests/tcg/s390x/csst.c
+++ b/tests/tcg/s390x/csst.c
@@ -3,7 +3,7 @@ 
 
 int main(void)
 {
-    uint64_t parmlist[] = {
+    uint64_t parmlist[] __attribute__((aligned(16))) = {
         0xfedcba9876543210ull,
         0,
         0x7777777777777777ull,