]> xenbits.xensource.com Git - qemu-xen.git/commit
linux-user/s390x: Save and restore psw.mask properly
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 15 Jun 2021 03:07:44 +0000 (20:07 -0700)
committerCornelia Huck <cohuck@redhat.com>
Mon, 21 Jun 2021 06:48:21 +0000 (08:48 +0200)
commit10b81272b305da375c3c3e9ec86f2e35df702f2e
treefaaff5dbf49be98a60ec2c6732d5bfa175d7e5c3
parentdeb60cc77b6743b65d1e830300b6d56ba538b103
linux-user/s390x: Save and restore psw.mask properly

At present, we're referencing env->psw.mask directly, which
fails to ensure that env->cc_op is incorporated or updated.
Use s390_cpu_{set_psw,get_psw_mask} to fix this.

Mirror the kernel's cleaning of the psw.mask in save_sigregs
and restore_sigregs.  Ignore PSW_MASK_RI for now, as qemu does
not support that.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Tested-by: jonathan.albrecht <jonathan.albrecht@linux.vnet.ibm.com>
Tested-by: <ruixin.bao@ibm.com>
Message-Id: <20210615030744.1252385-6-richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
linux-user/s390x/signal.c