tests/tcg/minilib: Constify digits in print_numThis avoids a memcpy to the stack when compiled with clang.Since we don't enable optimization, nor provide memcpy,this results in an undefined symbo
tests/tcg/minilib: Constify digits in print_numThis avoids a memcpy to the stack when compiled with clang.Since we don't enable optimization, nor provide memcpy,this results in an undefined symbol error at link time.Signed-off-by: Richard Henderson <richard.henderson@linaro.org>Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>Message-Id: <20240630190050.160642-2-richard.henderson@linaro.org>Signed-off-by: Alex Bennée <alex.bennee@linaro.org>Message-Id: <20240705084047.857176-7-alex.bennee@linaro.org>
show more ...
tests/tcg: Add -fno-stack-protectorA build of GCC 13.2 will have stack protector enabled by default if itwas configured with --enable-default-ssp option. For such a compiler,it is necessary to ex
tests/tcg: Add -fno-stack-protectorA build of GCC 13.2 will have stack protector enabled by default if itwas configured with --enable-default-ssp option. For such a compiler,it is necessary to explicitly disable stack protector when linkingwithout standard libraries.Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>Message-Id: <20230731091042.139159-3-akihiko.odaki@daynix.com>[AJB: fix comment string typo]Reviewed-by: Richard Henderson <richard.henderson@linaro.org>Signed-off-by: Alex Bennée <alex.bennee@linaro.org>Message-Id: <20231029145033.592566-3-alex.bennee@linaro.org>
Remove leading underscores from QEMU definesLeading underscores followed by a capital letter or underscore arereserved by the C standard.Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3
Remove leading underscores from QEMU definesLeading underscores followed by a capital letter or underscore arereserved by the C standard.Resolves: https://gitlab.com/qemu-project/qemu/-/issues/369Signed-off-by: Ahmed Abouzied <email@aabouzied.com>Message-Id: <20210605174938.13782-1-email@aabouzied.com>Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/tcg: use EXTRA_CFLAGS everywhereFor i386 specifically, this allows using the host GCCto compile the i386 tests. But, it should really bedone for all targets, unless we want to pass $(EXTRA
tests/tcg: use EXTRA_CFLAGS everywhereFor i386 specifically, this allows using the host GCCto compile the i386 tests. But, it should really bedone for all targets, unless we want to pass $(EXTRA_CFLAGS)directly as part of $(CC).Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Message-Id: <20190807143523.15917-2-pbonzini@redhat.com>Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/tcg/minilib: support %c format charSigned-off-by: Alex Bennée <alex.bennee@linaro.org>Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
tests/tcg: provide a minilib for system testsWe will likely want a few common functions to make up for the fact wedon't have a libc and we don't want to feel like we are programming bybanging roc
tests/tcg: provide a minilib for system testsWe will likely want a few common functions to make up for the fact wedon't have a libc and we don't want to feel like we are programming bybanging rocks together.I've purloined the printf function from: https://git.virtualopensystems.com/dev/tcg_baremetal_testsAlthough I have tweaked the names to avoid confusing GCC about clashingwith builtins.Cc: Alexander Spyridakis <a.spyridakis@virtualopensystems.com>Cc: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Alex Bennée <alex.bennee@linaro.org>