isa-l/include
Ilya Leoshkevich d3cfb2fb77 Fix s390 build
The goal of this patch is to make isa-l testsuite pass on s390 with
minimal changes to the library. The one and only reason isa-l does not
work on s390 at the moment is that s390 is big-endian, and isa-l
assumes little-endian at a lot of places.

There are two flavors of this: loading/storing integers from/to
memory, and overlapping structs. Loads/stores are already helpfully
wrapped by unaligned.h header, so replace the functions there with
endianness-aware variants. Solve struct member overlap by reversing
their order on big-endian.

Also, fix a couple of usages of uninitialized memory in the testsuite
(found with MemorySanitizer).

Fixes s390x part of #188.

Change-Id: Iaf14a113bd266900192cc8b44212f8a47a8c7753
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
2022-01-04 11:06:17 -07:00
..
aarch64_multibinary.h multi-binary:Add microarchitecture id reader 2020-03-30 09:20:29 -07:00
crc64.h Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
crc.h crc: Add t10dif+copy function 2017-12-18 15:59:17 -07:00
erasure_code.h doc: Fix missing description of gf_matrix_inverse 2019-12-13 16:24:05 -07:00
gf_vect_mul.h build: Add multi-arch autoconf support 2018-12-10 13:40:55 -07:00
igzip_lib.h igzip: Add new functions for faster dictionary compression 2020-10-21 18:09:49 -07:00
mem_routines.h mem: Add zero detect memory functions 2018-09-25 14:33:31 -07:00
multibinary.asm x86: Add ENDBR32/ENDBR64 at function entries for Intel CET 2020-05-26 09:16:49 -07:00
raid.h raid: Fix doc and base functions for min sources 2021-04-26 16:23:58 -07:00
reg_sizes.asm x86: Add ENDBR32/ENDBR64 at function entries for Intel CET 2020-05-26 09:16:49 -07:00
test.h build: Remove unneeded file types.h 2021-06-10 09:35:43 -07:00
unaligned.h Fix s390 build 2022-01-04 11:06:17 -07:00