target/s390x: introduce (test|set)_be_bit
commit3d1cfc3c682ffe937526a31a4161735338558985
authorDavid Hildenbrand <david@redhat.com>
Thu, 20 Jul 2017 12:37:19 +0000 (20 14:37 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 25 Jul 2017 07:17:42 +0000 (25 09:17 +0200)
tree7942a3a362d5dc267932f554824f55b7aed4c796
parentcc18f90762412c657a37a17809be9613ac7f0b00
target/s390x: introduce (test|set)_be_bit

Using ordinary bitmap operations to set/test bits does not work properly
on architectures !s390x. Let's drop (test|set)_bit_inv and introduce
(test|set)_be_bit instead. These functions work on uint8_t array, not on
unsigned longs arrays and are for now only used in the context of
CPU features.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170720123721.12366-4-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu_features.c
target/s390x/cpu_features.h
target/s390x/kvm.c