On 09/22/2017 09:03 AM, David Hildenbrand wrote: > env->psa is a 64bit value, while we copy 4 bytes into the save area, > resulting always in 0 getting stored. > > Let's try to reduce such errors by using a proper structure. While at > it, use correct cpu->be conversion (and get_psw_mask()), as we will be > reusing this code for TCG soon. > > Signed-off-by: David Hildenbrand <da...@redhat.com> > --- > > v1 -> v2: > - dropped QEMU_PACKED > - Moved QEMU_BUILD_BUG_ON() > - Retested if it works now > > target/s390x/kvm.c | 62 > ++++++++++++++++++++++++++++++++++++------------------ > 1 file changed, 42 insertions(+), 20 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~