]> git.proxmox.com Git - mirror_qemu.git/commit - target/s390x/translate.c
s390x/tcg: fix FP register pair checks
authorDavid Hildenbrand <david@redhat.com>
Thu, 27 Sep 2018 13:03:02 +0000 (15:03 +0200)
committerCornelia Huck <cohuck@redhat.com>
Thu, 4 Oct 2018 08:32:39 +0000 (10:32 +0200)
commiteba7170b55ba77a391b2b1b9cd49ffbac6561b0d
tree5d4dc16e9cc7ae3472f0819f687555a945363a41
parentb51cc1d826f3e86f790117d21d2bf1a3fb03b5a4
s390x/tcg: fix FP register pair checks

Valid register pairs are 0/2, 1/3, 4/6, 5/7, 8/10, 9/11, 12/14, 13/15.

R1/R2 always selects the lower number, so the current checks are not
correct as e.g. 2/4 could be selected as a pair.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180927130303.12236-9-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/translate.c