summary refs log tree commit diff stats
path: root/util/qemu-coroutine-sleep.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-10-21 10:57:13 +0200
committerCornelia Huck <cohuck@redhat.com>2019-10-21 17:33:29 +0200
commit23e797749fff754b8a136ee37607c6448b06cfca (patch)
treee77da2026cfdf1ff2c01bbfccc918e3c27bd214d /util/qemu-coroutine-sleep.c
parentb57b336876d08e303d5957d05bae77508ed0e4a2 (diff)
downloadfocaccia-qemu-23e797749fff754b8a136ee37607c6448b06cfca.tar.gz
focaccia-qemu-23e797749fff754b8a136ee37607c6448b06cfca.zip
s390x/tcg: Fix VECTOR SUBTRACT COMPUTE BORROW INDICATION
Looks like my idea of what a "borrow" is was wrong. The PoP says:

 "If the resulting subtraction results in a carry out of bit zero, a value
 of one is placed in the corresponding element of the first operand;
 otherwise, a value of zero is placed in the corresponding element"

As clarified by Richard, all we have to do is invert the result.

Fixes: 1ee2d7ba72f6 ("s390x/tcg: Implement VECTOR SUBTRACT COMPUTE BORROW INDICATION")
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20191021085715.3797-5-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'util/qemu-coroutine-sleep.c')
0 files changed, 0 insertions, 0 deletions