]> Git Repo - qemu.git/commitdiff
s390x/ioinst: Fixed alignment check in SCHM instruction
authorThomas Huth <[email protected]>
Fri, 21 Jun 2013 13:57:31 +0000 (15:57 +0200)
committerChristian Borntraeger <[email protected]>
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 <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
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;
     }
This page took 0.024123 seconds and 4 git commands to generate.