OSDN Git Service

target/s390x: Fix risbg handling
authorRichard Henderson <rth@twiddle.net>
Sat, 1 Jul 2017 20:20:24 +0000 (13:20 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 17 Jul 2017 21:13:17 +0000 (14:13 -0700)
commitdbdaaff43adc49f1debd935b1fd58e2b47ba7676
tree08f72aac883850d727d4530dfa0a9ee8b3bd91e0
parent19d70587b59f7879a0315a6d98c2409957154351
target/s390x: Fix risbg handling

The rotation is to the left, but extract shifts to the right.
The computation of the extract parameters needs adjusting.

For the entry condition, simplify

64 - rot + len <= 64
-rot + len <= 0
len <= rot

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reported-by: David Hildenbrand <david@redhat.com>
Suggested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/s390x/translate.c