diff options
author | David Hildenbrand <david@redhat.com> | 2019-09-05 12:05:53 +0200 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2019-09-23 09:28:29 +0200 |
commit | 087b8193edea9ba74401f9f27ad9ab79598a113a (patch) | |
tree | 183689a6187b3eeea66c9a3d8150a2fb736de226 | |
parent | 373290d8a8bd9457c40cb2ddcc8a87dd7f03bfe6 (diff) |
s390x/tcg: MVST: Check for specification exceptions
Bit position 32-55 of general register 0 must be zero.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
-rw-r--r-- | target/s390x/mem_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/s390x/mem_helper.c b/target/s390x/mem_helper.c index 41d7336a1a..ec27be174b 100644 --- a/target/s390x/mem_helper.c +++ b/target/s390x/mem_helper.c @@ -706,6 +706,9 @@ uint64_t HELPER(mvst)(CPUS390XState *env, uint64_t c, uint64_t d, uint64_t s) uintptr_t ra = GETPC(); uint32_t len; + if (c & 0xffffff00ull) { + s390_program_interrupt(env, PGM_SPECIFICATION, ILEN_AUTO, ra); + } c = c & 0xff; d = wrap_address(env, d); s = wrap_address(env, s); |