]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/ppc: Enable tcg backend vector compilation
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 23 Jun 2019 17:04:35 +0000 (19:04 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Oct 2019 14:09:44 +0000 (07:09 -0700)
commit4b06c216826b7e4763afbecde12d3c79aecc6ce7
treef44941362127ce9519ccdffc58f6660eac1d45d4
parent63922f467a200dabc43be3eaf7edbec800365bb5
tcg/ppc: Enable tcg backend vector compilation

Introduce all of the flags required to enable tcg backend vector support,
and a runtime flag to indicate the host supports Altivec instructions.

For now, do not actually set have_isa_altivec to true, because we have not
yet added all of the code to actually generate all of the required insns.
However, we must define these flags in order to disable ifndefs that create
stub versions of the functions added here.

The change to tcg_out_movi works around a buglet in tcg.c wherein if we
do not define tcg_out_dupi_vec we get a declared but not defined Werror,
but if we only declare it we get a defined but not used Werror.  We need
to this change to tcg_out_movi eventually anyway, so it's no biggie.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
tcg/ppc/tcg-target.h
tcg/ppc/tcg-target.inc.c
tcg/ppc/tcg-target.opc.h [new file with mode: 0644]