Skip to contentSkip to conversation

tests/tcg/s390x: Fix alignment of csst parameter list

PATCH In review Richard Henderson 2 participants 3 messages Jun 10, 2019 – Jun 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/tcg/s390x: Fix alignment of csst parameter list

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.

---
 tests/tcg/s390x/csst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/s390x/csst.c +1 -1
index 1dae9071fb..084d80af49 100644
@@ -3,7 +3,7 @@
 
 int main(void)
 {
-    uint64_t parmlist[] = {
+    uint64_t parmlist[] __attribute__((aligned(16))) = {
         0xfedcba9876543210ull,
         0,
         0x7777777777777777ull,
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Richard Henderson

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.

---
 tests/tcg/s390x/csst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/s390x/csst.c +0 -0
index 1dae9071fb..084d80af49 100644

tests/tcg/s390x/csst.c line 9

Quoted 8 lines
tests/tcg/s390x/csst.c +1 -1
@@ -3,7 +3,7 @@
 
 int main(void)
 {
-    uint64_t parmlist[] = {
+    uint64_t parmlist[] __attribute__((aligned(16))) = {
         0xfedcba9876543210ull,
         0,
         0x7777777777777777ull,

Queuing it to

https://github.com/davidhildenbrand/qemu.git s390-tcg-next

for now. Let me know if you want to send this via a different PULL request yourself.

Signature · 3 lines
Thanks,

David / dhildenb