From patchwork Thu Aug 17 23:01:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 110348 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp146142qge; Thu, 17 Aug 2017 16:03:38 -0700 (PDT) X-Received: by 10.200.57.101 with SMTP id t34mr9781440qtb.158.1503011017967; Thu, 17 Aug 2017 16:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503011017; cv=none; d=google.com; s=arc-20160816; b=ggwC1gU/UVuQyegTquPz/zZg3aFh8Sv+u3OclhdbbAxOhNuVw0hpX+qBBBQXoDAJ7z BfH9eh/gI1isgiZ15AZ0zB6eW+i3tQKc7eqlPQCtKcYep4fqCZix6OrWItsDiookEjIw 7tREZI5vHg7Wd7ky2qmRvvWjVvl5qv0iyLt6/9WgBfUWAtq9nBjfZ4JOx8zTrKYqqRK0 ox5yq/bGtL0oSkLJ3hx91kOwAGo4d8jLGjWlHoykAYvwqzjQpZA3dRsFKFNpDo+mn8T0 ALcyDbNUEp+R+erveZbxpr+knU9pYj0GltZhQ6kqZ5zcJpLlOdosxq/DV/btovXxktS0 SW2Q== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=9o+4s+u+HhA1SN1wAmIK4x0UqDGVW4ct/r56gOt0Xg0=; b=kTwKgJnp/MCn7qEZYp7QdCGuEVARgKw+NYVDT+zMZ5KKPi7C2DRFgBV08Jf+nPJusp xNoDkl84baFHcKGYbg6mlwLK5/QMYpYl9YHQnihGbJSjSRpBsNnPFEoHrKlVXBtsCZp5 NgY4XAPsKuXTk6NGmUQXYcq9+mZAZLnLhyUDw6SfHa39w3e2o7T10zFPDbViJTtY6dLx 1Gy6ik0xVdlaKFEiOTcPj67korGUJ8fq9xiKa7INJK6eJFp1/zQCMkvVOJ1c+bGn2Mz1 fv9PZ/Mr7tvgpumbXO7N4Bneut9VM929FwRZkx4t2MW8UrvBG9KgDajr3IAGi7MHL/bx Fu1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ERhOP+bZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e55si4064850qta.502.2017.08.17.16.03.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 16:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ERhOP+bZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diTp9-0006An-TQ for patch@linaro.org; Thu, 17 Aug 2017 19:03:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diTn3-0004vg-RA for qemu-devel@nongnu.org; Thu, 17 Aug 2017 19:01:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diTn0-0000qQ-Ag for qemu-devel@nongnu.org; Thu, 17 Aug 2017 19:01:25 -0400 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:36958) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diTn0-0000px-5Y for qemu-devel@nongnu.org; Thu, 17 Aug 2017 19:01:22 -0400 Received: by mail-pg0-x22a.google.com with SMTP id y129so51924905pgy.4 for ; Thu, 17 Aug 2017 16:01:21 -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=9o+4s+u+HhA1SN1wAmIK4x0UqDGVW4ct/r56gOt0Xg0=; b=ERhOP+bZ0PJ2PEOW+/ErsB9nFCLtJqJLFDUj272WDZ0MjFuhNhXwKnFnAmMUKs4A7s Hj8cuiKw2JYV52xfx6PLq7IEAaweD9doF4Md1XiAcX3CdQP0ajE6QRFcNqOvRiEh36rg Z7zWyt9Sy5eLrqYruYPWdiwWhW6ZteYTQT4tw= 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=9o+4s+u+HhA1SN1wAmIK4x0UqDGVW4ct/r56gOt0Xg0=; b=X+QBsxjDylkCdE6laL42KUW9aRc/BQgRWPJ/ha0PQ/uIVl4/6LOrW3k1TYSTtJiaCH VH40tyai0cLb6r13L4qpYSAmtBblU8QyLGYNyYAKSgro1ktt8k8s9UbAWHtVEv0yM3vL xkx28FYtfFIaNwlQERi0WNE9YWM5HKmGHRkfiujj2fk136AovV1ffJSp8gEU2H0KpQ9I yraTE2cB2jWXffeydFCSHUdMYbcLGbIa55es8w697reJOz97hO/70PGfGw4R29/a3toS TNCoOK+2wsPc4DgpB34NIVG2uiArg6oc61tqCFWAiPC/S48w6r5HbtDZsVnPDv17KLBW ZrWg== X-Gm-Message-State: AHYfb5gaHQP4fgaC5j1shin9WerTpMk3Yl1JgXLW0eH1TpTuEWajoLyo 8/fj2UX/PFcPxwI7lAwi/w== X-Received: by 10.98.198.145 with SMTP id x17mr6922847pfk.272.1503010880804; Thu, 17 Aug 2017 16:01:20 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id c23sm5190043pfc.136.2017.08.17.16.01.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Aug 2017 16:01:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 17 Aug 2017 16:01:09 -0700 Message-Id: <20170817230114.3655-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170817230114.3655-1-richard.henderson@linaro.org> References: <20170817230114.3655-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22a Subject: [Qemu-devel] [PATCH 3/8] tcg: Add types for host vectors X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Nothing uses or enables them yet. Signed-off-by: Richard Henderson --- tcg/tcg.h | 5 +++++ tcg/tcg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.13.5 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée diff --git a/tcg/tcg.h b/tcg/tcg.h index dd97095af5..1277caed3d 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -256,6 +256,11 @@ typedef struct TCGPool { typedef enum TCGType { TCG_TYPE_I32, TCG_TYPE_I64, + + TCG_TYPE_V64, + TCG_TYPE_V128, + TCG_TYPE_V256, + TCG_TYPE_COUNT, /* number of different types */ /* An alias for the size of the host register. */ diff --git a/tcg/tcg.c b/tcg/tcg.c index 787c8ba0f7..ea78d47fad 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -118,7 +118,7 @@ static TCGReg tcg_reg_alloc_new(TCGContext *s, TCGType t) static bool tcg_out_ldst_finalize(TCGContext *s); #endif -static TCGRegSet tcg_target_available_regs[2]; +static TCGRegSet tcg_target_available_regs[TCG_TYPE_COUNT]; static TCGRegSet tcg_target_call_clobber_regs; #if TCG_TARGET_INSN_UNIT_SIZE == 1