From: Sascha Silbe Date: Mon, 11 Jul 2016 11:00:36 +0000 (+0200) Subject: s390x/css: copy CCW format bit from ORB to SCSW X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~6^2~13^2~6^2~91^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=485dd69088b6ff6cf1c1b6b2c8157c1c9846992a;p=sdk%2Femulator%2Fqemu.git s390x/css: copy CCW format bit from ORB to SCSW The CCW Format (F) flag of the Subchannel-Status Word (SCSW) indicates the format of the CCWs "associated with an I/O operation", i.e. the value of CCW-Format Control (F) bit of the Operation-Request Block (ORB). Copy the CCW format bit from the ORB to the SCSW so we correctly indicate the format of the CCWs to the guest. Signed-off-by: Sascha Silbe Reviewed-by: Halil Pasic Signed-off-by: Cornelia Huck --- diff --git a/hw/s390x/css.c b/hw/s390x/css.c index aa61773885..9e98f50868 100644 --- a/hw/s390x/css.c +++ b/hw/s390x/css.c @@ -524,6 +524,7 @@ static void sch_handle_start_func(SubchDev *sch, ORB *orb) return; } sch->ccw_fmt_1 = !!(orb->ctrl0 & ORB_CTRL0_MASK_FMT); + s->flags |= (sch->ccw_fmt_1) ? SCSW_FLAGS_MASK_FMT : 0; sch->ccw_no_data_cnt = 0; suspend_allowed = !!(orb->ctrl0 & ORB_CTRL0_MASK_SPND); } else {