From patchwork Sun Oct 13 22:25:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 176084 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3784272ill; Sun, 13 Oct 2019 15:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCdssoSrqLXwGuZzgk++Q5G9z8gccVNRs8AOUFHQkso6I0ik7MmijXFAKJn/+nV9ROWnCM X-Received: by 2002:aa7:ca52:: with SMTP id j18mr25272643edt.299.1571005808684; Sun, 13 Oct 2019 15:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571005808; cv=none; d=google.com; s=arc-20160816; b=eHtUHHv2ezfGamU+91s4aJQ1A7SjmMu8dBqhhQUu/6jmUA0J3B6/7an2r/GguX4OsK GjKqGc/7Vza66wZ5HkBlVwSAibphqaKkLMJarr3Bx/+aiPieYEX/okJ44JLzwibd96Vv wFF8N0aWa82lQg2r84R9M/+CZid7mqurcW7E43IpGbf30vHiFWvfw4ACeHaytM1sgqRu dnxiMu5m4NVFTUBl0iSssDwjDN2bUZ7HmM98AwKOLHb7UomaZkvq/WJVeIIIGcdVbIJf E+UbGonsE5nslGpTa9B/55AXGHIJGi3FEmpQCU9qhMkeLIJD/ANkXypokUc4bSKxbg9V vNMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=oeW7tayprlItGgUIPuuSDkp5jBXbzTBuI3cJggBf824=; b=X6FoL4NBS0XURMizSnwYnbv9wpNLqNFbD0L3Tey5T+stF5ZH4juFYBcQobhc41pnU1 KsxsKt5Fe/ZlVTX06FysfdRFzuFZ2ONCtyXxu8YT4gnn3TZTd1OontADaCRXQxxeye6Y YsC4h05q5/6iVMyvcMzQFuDWN0IE4jKPPgGZmENeegGsndq34hcAGfc3ojvGI3N4atZF 1bO1uZ3wMJl9MvlW5axMOAL5g94IMv0MY8ecWwY2hBWguc2OmHbCuUCM+PQfyQVIuS6D bBG43sC1zqFXvFp6qJgaQQV6K6fCrZT11cuztsRCleVvd9lV5/5UHqDaplkRYcfIn1qb bUeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iRkFFzmx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 27si9997626edz.186.2019.10.13.15.30.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Oct 2019 15:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iRkFFzmx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJmNL-0001s0-Dm for patch@linaro.org; Sun, 13 Oct 2019 18:30:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51317) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJmJU-0006yT-SS for qemu-devel@nongnu.org; Sun, 13 Oct 2019 18:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJmJT-00010F-RJ for qemu-devel@nongnu.org; Sun, 13 Oct 2019 18:26:08 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:40512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJmJT-0000zs-MU for qemu-devel@nongnu.org; Sun, 13 Oct 2019 18:26:07 -0400 Received: by mail-pg1-x533.google.com with SMTP id e13so725608pga.7 for ; Sun, 13 Oct 2019 15:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oeW7tayprlItGgUIPuuSDkp5jBXbzTBuI3cJggBf824=; b=iRkFFzmxfrN5Tba9PDtDgK4IFVXLKCZPKmG8xdYRd+GiuLHpGAvd8gg7NPONxW3a5y cL0b/5ogdqDp0IAA/OzGP33x/yQP57fZQUmhcvwSQv4WoiyPctHkq+263sHadiQHo6bT QYM1pajLsIey9XcZUbFKcBoafN4KlowC4eQy7Ybp21Rz7HGad+ZAaA/NCKk05OlJk1yp 3Ssfli2zxpYtkG7Y4UUK07+gjx3gmTLhRH7XhbtKEQgVlKTuuRPGb1aTnJcfdX/KeFkI Yp5wbrFGKhGbKPmNwTlrgYy1Fa269l2uSWqUBaP9sVOYvOutNgSj7pxKiYXY9FWkLLPX fs9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oeW7tayprlItGgUIPuuSDkp5jBXbzTBuI3cJggBf824=; b=iURNWqSYtsWbDMbapW1Bw5yNy6EOvmLRXTJkBk41PgtbMrjoK4seQqg2R0qw8vlA24 9XzNjUrWZBZ15Tew6y24zejyggxFr5kdF6dXmNd2xMHLgKt8CbDj6WFkw48OL7mHvKw2 wtgi3vbIN1K3aS307pnHL7jh5LBTT44MygBfUXpS13gL/E4/LSLI+TJmGnHUA1ErB5pr dE9XXVfM1+48iP3MuMRJrgXXSQvwEOH/1tvRorvSW501Uvss0gqPM5MIRLi/cztZeD12 Db2VwYHvhvNPsE8psi8u9xiMdX47uIEiJtl/Bgf9kEP5OP9ochcZc5ByoefkFj+jU7f7 tLQQ== X-Gm-Message-State: APjAAAWlQRDL2xE8Xa8qbhe/kgMDxwKw44bgPsIUjSPeR+Zl80nHwYfv Xwn2eJCCr/a1mSVPbc/q39eyQpG3TsA= X-Received: by 2002:a65:538c:: with SMTP id x12mr8390274pgq.289.1571005566351; Sun, 13 Oct 2019 15:26:06 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id d76sm15940571pfd.185.2019.10.13.15.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2019 15:26:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 15/23] tcg/ppc: Enable Altivec detection Date: Sun, 13 Oct 2019 15:25:36 -0700 Message-Id: <20191013222544.3679-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191013222544.3679-1-richard.henderson@linaro.org> References: <20191013222544.3679-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::533 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 --- tcg/ppc/tcg-target.inc.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 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) {