diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-09-02 18:40:01 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-10-21 15:19:41 +0300 |
commit | 17351c3f11e52101e1498ba03eec06fa5e4e713a (patch) | |
tree | dc36c8d583bf12bf0888f8f229250db5fbaf89fc /target-s390x | |
parent | 52956a9b46e2a0894bc2de039e3704a4e23e6907 (diff) |
linux-user: Fix definition of target_sigevent for 32-bit guests
The sigevent structure includes a union with some fields which
are pointers. For the QEMU target_sigevent structure we must
represent these as abi_ulongs, not host function pointers.
This error was causing the compiler to believe it should 8-align
the _sigev_un union on a 64-bit host, which meant that the
code in target_to_host_sigevent() was looking at the wrong
offset to find the _tid field, and timer_create() would
spuriously fail with EINVAL.
This fixes the final loose end noted in LP:1042388.
While we're editing the structure, switch the 'int32_t' fields
to 'abi_int'; this will only matter for guests with non-standard
integer alignment like m68k.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'target-s390x')
0 files changed, 0 insertions, 0 deletions