diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2013-06-21 15:57:31 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2013-07-30 16:11:00 +0200 |
commit | 7ae5a7c0f63cc625cf31a9c9f18cc07f4049e48f (patch) | |
tree | 085339c50d5b7dffd86d1d4ea19393af2775cdd9 /target-s390x/ioinst.c | |
parent | 0056fc9e44d5b424a0f2293edacb0381234fc9c5 (diff) |
s390x/ioinst: Fixed alignment check in SCHM instruction
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>
Diffstat (limited to 'target-s390x/ioinst.c')
-rw-r--r-- | target-s390x/ioinst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/ioinst.c b/target-s390x/ioinst.c index 0dc258fe3c..098bd8d5d3 100644 --- a/target-s390x/ioinst.c +++ b/target-s390x/ioinst.c @@ -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; } |