qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] tests/tcg: compile system emulation tests as freestandin


From: Richard Henderson
Subject: Re: [PATCH 1/2] tests/tcg: compile system emulation tests as freestanding
Date: Wed, 22 Jun 2022 07:52:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 6/22/22 06:47, Paolo Bonzini wrote:
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              | 1 +
  tests/tcg/aarch64/system/pauth-3.c     | 2 +-
  tests/tcg/aarch64/system/semiconsole.c | 2 +-
  tests/tcg/aarch64/system/semiheap.c    | 2 +-
  tests/tcg/multiarch/system/memory.c    | 2 +-
  5 files changed, 5 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]