From patchwork Tue Sep 12 16:24:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9949591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 345146038F for ; Tue, 12 Sep 2017 16:26:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37C9E29037 for ; Tue, 12 Sep 2017 16:26:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B7EA2903A; Tue, 12 Sep 2017 16:26:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A959729037 for ; Tue, 12 Sep 2017 16:26:40 +0000 (UTC) Received: from localhost ([::1]:36886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro1H-0001fJ-R6 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 12 Sep 2017 12:26:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro02-0001dG-47 for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dro00-0006yL-GF for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:22 -0400 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:35937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dro00-0006xy-AX for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:20 -0400 Received: by mail-pg0-x232.google.com with SMTP id i130so14869212pgc.3 for ; Tue, 12 Sep 2017 09:25:20 -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 :mime-version:content-transfer-encoding; bh=oWluCzfErekNM0P6PesQBlMo2sMHFtlmX5OXtZiRM/Y=; b=FnCOKfa6JKVEQp9YtXnfopTVVX8J5nxFMmylmcw1dY/TXzuiJb8vLkeYeKaQ46YZbN VdxbjOkBymH5wNcYcafHOjObZwTmB8chf42txkP7wdhop7Po3QppoSIDyVt4xK2YczBc pKx04l6P8yH+JIyZmsuyEw2bpHfuPizM7plMk= 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:mime-version:content-transfer-encoding; bh=oWluCzfErekNM0P6PesQBlMo2sMHFtlmX5OXtZiRM/Y=; b=PXX6Ypd5dlwvd9gl8VCCOmLU4QdniFnSvLRxTHbXg6YgpjijGQt7hDVOZn7Pc44T3s hGGWHv9hwzieEf+A/2e/iTbsC017A+p+rIOQeDqr/LX2J1hY3FWd+yceXHimNEo3MZw2 VxA1gaZNBfjw6uJsxK/rN9jgNFuuHPqupK/rcqWHpM0P3A9kHQFtiDkGegKImd4X8xcG ysEZMtD8GiU8m7BKAvrmQMdYlxBDt4aWQkZCn5xKoBScIDC5XbzIRN5aFDwHNVyOQjY8 k22Q+V1NFQSm7kHrf5vWYh+P4aOUnt81QOXP5o8jrpoTgLu+YU/oYliIZgDMdTUUEbn7 ktxw== X-Gm-Message-State: AHPjjUiJ+bNO9xWrhy9HECjQL52Ifv/t9NKi5mk+I0FICG5IlzgmqtH0 tnEC3c3Exe3Dx41cPxHSGA== X-Google-Smtp-Source: ADKCNb4c8VjliWVRDI/6g8/A8wzB57W8vjutty1JKOjkOYqBQlC+anx04Td7bfk8r5RacQMylO+qoA== X-Received: by 10.99.121.135 with SMTP id u129mr15188409pgc.250.1505233519009; Tue, 12 Sep 2017 09:25:19 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net. [97.126.103.167]) by smtp.gmail.com with ESMTPSA id b22sm20382140pfh.175.2017.09.12.09.25.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 09:25:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Sep 2017 09:24:59 -0700 Message-Id: <20170912162513.21694-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170912162513.21694-1-richard.henderson@linaro.org> References: <20170912162513.21694-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::232 Subject: [Qemu-devel] [PATCH v2 02/16] 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: alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Nothing uses or enables them yet. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg.h | 5 +++++ tcg/tcg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tcg/tcg.h b/tcg/tcg.h index ac94133870..f56ddac31d 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 fd8a3dfe93..bc65d01618 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -116,7 +116,7 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type, 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