]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tcg/ppc: Enable Altivec detection
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 29 Jun 2019 10:19:04 +0000 (10:19 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Oct 2019 14:10:17 +0000 (07:10 -0700)
Now that we have implemented the required tcg operations,
we can enable detection of host vector support.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> (PPC32)
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/ppc/tcg-target.inc.c

index 8a508136ce5e85731eb66c56a0b195e3ae363999..d739f4b6053b3afa91083bfe317353a213b0b68e 100644 (file)
@@ -3528,6 +3528,10 @@ static void tcg_target_init(TCGContext *s)
     have_isel = have_isa_2_06;
 #endif
 
+    if (hwcap & PPC_FEATURE_HAS_ALTIVEC) {
+        have_altivec = true;
+    }
+
     tcg_target_available_regs[TCG_TYPE_I32] = 0xffffffff;
     tcg_target_available_regs[TCG_TYPE_I64] = 0xffffffff;
     if (have_altivec) {