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>
This commit is contained in:
parent
0056fc9e44
commit
7ae5a7c0f6
|
@ -688,7 +688,7 @@ int ioinst_handle_schm(CPUS390XState *env, uint64_t reg1, uint64_t reg2,
|
||||||
update = SCHM_REG1_UPD(reg1);
|
update = SCHM_REG1_UPD(reg1);
|
||||||
dct = SCHM_REG1_DCT(reg1);
|
dct = SCHM_REG1_DCT(reg1);
|
||||||
|
|
||||||
if (update && (reg2 & 0x0000000000000fff)) {
|
if (update && (reg2 & 0x000000000000001f)) {
|
||||||
program_interrupt(env, PGM_OPERAND, 2);
|
program_interrupt(env, PGM_OPERAND, 2);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue