From: Richard Henderson Date: Sat, 29 Jun 2019 10:19:04 +0000 (+0000) Subject: tcg/ppc: Enable Altivec detection X-Git-Tag: v4.2.0-rc0~53^2~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=68f340d4cd9f0423039e4706a6602673d7ca9101;p=users%2Fdwmw2%2Fqemu.git tcg/ppc: Enable Altivec detection Now that we have implemented the required tcg operations, we can enable detection of host vector support. Tested-by: Mark Cave-Ayland (PPC32) Reviewed-by: Aleksandar Markovic Signed-off-by: Richard Henderson --- diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index 8a508136ce..d739f4b605 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-target.inc.c @@ -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) {