]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
s390x/ioinst: Fixed alignment check in SCHM instruction
authorThomas Huth <thuth@linux.vnet.ibm.com>
Fri, 21 Jun 2013 13:57:31 +0000 (15:57 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 30 Jul 2013 14:11:00 +0000 (16:11 +0200)
Register 2 only has to be aligned to a 32-byte boundary, not a
full page boundary.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
target-s390x/ioinst.c

index 0dc258fe3c5bb7226dbabfb339a84c3aff60436e..098bd8d5d3ce203895604bf7f23769d45a973901 100644 (file)
@@ -688,7 +688,7 @@ int ioinst_handle_schm(CPUS390XState *env, uint64_t reg1, uint64_t reg2,
     update = SCHM_REG1_UPD(reg1);
     dct = SCHM_REG1_DCT(reg1);
 
-    if (update && (reg2 & 0x0000000000000fff)) {
+    if (update && (reg2 & 0x000000000000001f)) {
         program_interrupt(env, PGM_OPERAND, 2);
         return -EIO;
     }