Commit b0b7b43f authored by Heiko Carstens's avatar Heiko Carstens

s390/vx: add 64 and 128 bit members to __vector128 struct

Add 64 and 128 bit members to __vector128 struct in order to allow reading
of the complete value, or the higher or lower part of vector register
contents instead of having to use casts.

Add an explicit __aligned(4) statement to avoid that the alignment of the
structure changes from 4 to 8. This should make sure that no breakage
happens because of this change.
Reviewed-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 1306711a
......@@ -19,8 +19,15 @@ typedef unsigned long addr_t;
typedef __signed__ long saddr_t;
typedef struct {
union {
struct {
__u64 high;
__u64 low;
};
__uint128_t v;
__u32 u[4];
} __vector128;
};
} __attribute__((packed, aligned(4))) __vector128;
#endif /* __ASSEMBLY__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment