]> Git Repo - qemu.git/commitdiff
s390x/css: Fix concurrent sense.
authorCornelia Huck <[email protected]>
Wed, 5 Jun 2013 14:54:05 +0000 (16:54 +0200)
committerCornelia Huck <[email protected]>
Thu, 6 Jun 2013 08:25:18 +0000 (10:25 +0200)
Fix an off-by-one error when indicating availablity of concurrent
sense data.

Cc: [email protected]
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/css.c

index e526a1c86c162c93ad793f64bf8ced28e46e54f3..f82abfe0293d735688bd0ff712d7110b06a2508c 100644 (file)
@@ -777,7 +777,7 @@ int css_do_tsch(SubchDev *sch, IRB *target_irb)
             (p->chars & PMCW_CHARS_MASK_CSENSE)) {
             irb.scsw.flags |= SCSW_FLAGS_MASK_ESWF | SCSW_FLAGS_MASK_ECTL;
             memcpy(irb.ecw, sch->sense_data, sizeof(sch->sense_data));
-            irb.esw[1] = 0x02000000 | (sizeof(sch->sense_data) << 8);
+            irb.esw[1] = 0x01000000 | (sizeof(sch->sense_data) << 8);
         }
     }
     /* Store the irb to the guest. */
This page took 0.027799 seconds and 4 git commands to generate.