tests/tcg: compile system emulation tests as freestanding
commitbb52a8a278782f4e0f009d3568e60a9689b64da7
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Jun 2022 09:06:27 +0000 (22 11:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jul 2022 07:31:16 +0000 (6 09:31 +0200)
tree941f7fd748e177720e47a74f25bd380c7cee219a
parente81785abba296ee6b54b6ae833cac45020b5ba6a
tests/tcg: compile system emulation tests as freestanding

System emulation tests do not run in a hosted environment, since they
do not link with libc.  They should only use freestanding headers
(float.h, limits.h, stdarg.h, stddef.h, stdbool.h, stdint.h,
stdalign.h, stdnoreturn.h) and should be compiled with -ffreestanding
in order to use the compiler implementation of those headers
rather than the one in libc.

Some tests are using inttypes.h instead of stdint.h, so fix that.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/tcg/Makefile.target
tests/tcg/aarch64/system/pauth-3.c
tests/tcg/aarch64/system/semiconsole.c
tests/tcg/aarch64/system/semiheap.c
tests/tcg/multiarch/system/memory.c