s390x: emulator: Fix error path of invalid function code
When 127 is not an invalid function code we should not wait for the
program check. Move this check into the else branch.
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
diff --git a/s390x/emulator.c b/s390x/emulator.c
index 2c42f96..5a5a3ed 100644
--- a/s390x/emulator.c
+++ b/s390x/emulator.c
@@ -130,8 +130,8 @@
report_skip("127 not invalid");
} else {
__test_cpacf(opcode, 127, 2, 4, 6);
+ check_pgm_int_code(PGM_INT_CODE_SPECIFICATION);
}
- check_pgm_int_code(PGM_INT_CODE_SPECIFICATION);
report_prefix_pop();
}