OSDN Git Service

tests/tcg/multiarch: Make the system memory test work on big-endian
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 11 May 2023 11:46:50 +0000 (13:46 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 16 May 2023 07:14:18 +0000 (09:14 +0200)
commitf8d7c90f836370d2a0c8fee8e6c43d49d35ad770
tree5cba8cd5bc27e47f8c7c592088df2e247ac57fa1
parent970641de01908dd09b569965e78f13842e5854bc
tests/tcg/multiarch: Make the system memory test work on big-endian

Store the bytes in descending order on big-endian.
Invert the logic in the multi-byte signed tests on big-endian.
Make the checks in the multi-byte signed tests stricter.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230511114651.439872-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/tcg/multiarch/system/memory.c