Skip to content

Commit

Permalink
s390x/tcg: MVST: Check for specification exceptions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davidhildenbrand committed Sep 23, 2019
1 parent 373290d commit 087b819
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target/s390x/mem_helper.c
Expand Up @@ -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);
Expand Down

0 comments on commit 087b819

Please sign in to comment.