[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL v2 07/34] s390x: Align vector registers to 16 bytes
From: |
Cornelia Huck |
Subject: |
[qemu-s390x] [PULL v2 07/34] s390x: Align vector registers to 16 bytes |
Date: |
Fri, 7 Jun 2019 16:17:00 +0200 |
From: David Hildenbrand <address@hidden>
11e2bfef7990 ("tcg/i386: Use MOVDQA for TCG_TYPE_V128 load/store")
revealed that the vregs are not aligned to 16 bytes. Align them to
16 bytes, to avoid segfault'ing on x86.
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
target/s390x/cpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h
index 7305cacc7b77..1bed12b6c3e0 100644
--- a/target/s390x/cpu.h
+++ b/target/s390x/cpu.h
@@ -66,7 +66,7 @@ struct CPUS390XState {
* The floating point registers are part of the vector registers.
* vregs[0][0] -> vregs[15][0] are 16 floating point registers
*/
- CPU_DoubleU vregs[32][2]; /* vector registers */
+ CPU_DoubleU vregs[32][2] QEMU_ALIGNED(16); /* vector registers */
uint32_t aregs[16]; /* access registers */
uint8_t riccb[64]; /* runtime instrumentation control */
uint64_t gscb[4]; /* guarded storage control */
--
2.20.1
- [qemu-s390x] [PULL v2 00/34] s390x updates, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 01/34] MAINTAINERS: cover tests/migration/s390x/, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 02/34] s390x/tcg: Implement VECTOR FIND ANY ELEMENT EQUAL, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 04/34] s390x/tcg: Implement VECTOR FIND ELEMENT NOT EQUAL, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 03/34] s390x/tcg: Implement VECTOR FIND ELEMENT EQUAL, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 05/34] s390x/tcg: Implement VECTOR ISOLATE STRING, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 06/34] s390x/tcg: Implement VECTOR STRING RANGE COMPARE, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 07/34] s390x: Align vector registers to 16 bytes,
Cornelia Huck <=
- [qemu-s390x] [PULL v2 10/34] s390x/tcg: Store only the necessary amount of doublewords for STFLE, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 09/34] s390x/tcg: Fix max_byte detection for stfle, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 11/34] s390x/tcg: Introduce tcg_s390_vector_exception(), Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 08/34] s390x: Use uint64_t for vector registers, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 12/34] s390x/tcg: Export float_comp_to_cc() and float(32|64|128)_dcmask(), Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 14/34] s390x/tcg: Implement VECTOR FP COMPARE (AND SIGNAL) SCALAR, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 13/34] s390x/tcg: Implement VECTOR FP ADD, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 15/34] s390x/tcg: Implement VECTOR FP COMPARE (EQUAL|HIGH|HIGH OR EQUAL), Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 16/34] s390x/tcg: Implement VECTOR FP CONVERT FROM FIXED 64-BIT, Cornelia Huck, 2019/06/07
- [qemu-s390x] [PULL v2 17/34] s390x/tcg: Implement VECTOR FP CONVERT FROM LOGICAL 64-BIT, Cornelia Huck, 2019/06/07