Peter Maydell 55281a2c53 hw/s390/ccw.c: Don't take address of packed members
Taking the address of a field in a packed struct is a bad idea, because
it might not be actually aligned enough for that pointer type (and
thus cause a crash on dereference on some host architectures). Newer
versions of clang warn about this.

Avoid the problem by using local copies of the PMCW and SCSW
struct fields in copy_schib_from_guest() and copy_schib_to_guest().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20181213120252.21697-1-peter.maydell@linaro.org>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-12-20 17:07:24 +01:00
..
2018-12-16 16:32:43 +00:00
2018-12-16 16:32:43 +00:00
2018-12-16 16:32:43 +00:00
2018-10-24 06:44:59 -03:00
2018-12-16 16:32:43 +00:00
2018-10-24 06:44:59 -03:00
2018-12-16 16:32:43 +00:00
2018-12-14 13:30:51 +00:00
2018-11-08 14:42:37 +00:00
2016-01-29 15:07:25 +00:00
2018-08-18 18:01:34 +03:00
2018-11-27 15:35:15 +01:00
2018-12-11 22:26:44 +00:00