From patchwork Thu Aug 17 18:03:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 110334 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp2521253qge; Thu, 17 Aug 2017 11:06:49 -0700 (PDT) X-Received: by 10.55.33.28 with SMTP id h28mr7874019qkh.281.1502993209427; Thu, 17 Aug 2017 11:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502993209; cv=none; d=google.com; s=arc-20160816; b=NslijasomZNhJDd0v/u3hWyrGD9Dccgl64vLMyoiFPw+qg/pwomkLjNk9Q29kjXqcC Xc8/H9Ix+lbAARcGPde8dZkCpJ6JVy6XfLsof2Umnb5G0hOWAVSToVusYV+5b0ShrH0O lBedfc1ul0lZDMrx8WR1JzToAna4xJSelf4O5BSjOIttVUwAcm8RLIZnHULVpmER2dsP uXvVaeqk0JsfyIzcoeKX2g9gBYmRXC9prdgUldGy/zLO9BHdEYdwLH2ei4GECFEP25/g taiS9DbA7B8hHV7kHCaokah2gfsHD432ys2Z724mHxx5PcmvWESRQ4JSQMeuA0SLs6hO 8YRA== 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=w838pJBKi9FO1w7BOjy9IbZ2bNjPtkChS6A9ODn8p/8=; b=LKAfKElRYeZE0nA45735epIM4Pxb+EqaRs7DhPQVhcS/+4V0s/ngqgjrKnVQyjZuoD uHtvpM9LYkwdqK/wrUjhzjrj21H69Obe4Uk7y9/e9+XURFK8sDr1TzQZSyM1Yx9Xz/oN srAbfxU+cdIc0suZjG4692I7KdtMQbntUzlDLf4XyRYoSnKd0i1KAedjAbpfQYM1M2uP E3aVBKh8Q4hHSatBkcLkur0mJkxEaLR4I1+pTZnd3Z+0GH42C7snvF+hSDt785pbGQAg of7WDDYxUq7vKp94lX8psYVpwX1vb06NyWv2N1Bmr9UAkI8XYAhVUYTOkOkciWMc0fFQ RMDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QXmhNw6j; 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 k63si3411342qtd.474.2017.08.17.11.06.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 11:06:49 -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=QXmhNw6j; 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]:38486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diPBv-0005cA-A2 for patch@linaro.org; Thu, 17 Aug 2017 14:06:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diP9R-00042z-VJ for qemu-devel@nongnu.org; Thu, 17 Aug 2017 14:04:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diP9P-0005IR-Ki for qemu-devel@nongnu.org; Thu, 17 Aug 2017 14:04:13 -0400 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:33116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diP9P-0005Hz-EV for qemu-devel@nongnu.org; Thu, 17 Aug 2017 14:04:11 -0400 Received: by mail-wr0-x233.google.com with SMTP id b65so50612553wrd.0 for ; Thu, 17 Aug 2017 11:04:11 -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=w838pJBKi9FO1w7BOjy9IbZ2bNjPtkChS6A9ODn8p/8=; b=QXmhNw6jrcADGhmvsIoAsSfoUtwltZtl0ObAepkptCNOg0pf0M+d27w7ubjqO8CKVE lGlVsMVLK0RGIxMV+dw8V7kCAS5acMkjKFYQ7RqT1AZ5fBcqe3Pq6Pf3o8WrZJ1bS1/a XLPqADRC7AwYcSQBYvwgleOrMY4CroqRt6qao= 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=w838pJBKi9FO1w7BOjy9IbZ2bNjPtkChS6A9ODn8p/8=; b=ENfzm5LZEk+2q9ba7VVbIHC49TQZiudln77W+m7R+dzHTgtvRZq+b5QaTZpk9B+aaG kfSlL0G3thcKP5F/ha1CAAxEY6GidqApZMvMGgSHTyxVAacJ3y2+U1Bj1ZgXvH+yBoVL Pd1RrCoh306Q58A9+e0BYvdfr0+TOocDqSBpMEm2/FhdAGOWCXaTsBaP3wb3vXq4iygK /PiGcMdws/ZOkVRbstfMtGNH9skhpou7NgyD7VVEhLfu6Fy2p0QpPsIo6I97t77TaH1K aukTB626hqzAfNABQEqCAW4x7kk1gxOG7NROy6o1prc3o8nTF3KmnkDi3uZTnGXUPGUR mfIg== X-Gm-Message-State: AHYfb5gjWOX9+CRoM5sTK6OVGp5bKpyQ2Flw8bujQ7PRhMpEVbxObfuh 4MYRVnpcY4DfdoSW X-Received: by 10.223.199.212 with SMTP id y20mr4105289wrg.279.1502993050361; Thu, 17 Aug 2017 11:04:10 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l23sm3956278wrb.30.2017.08.17.11.04.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Aug 2017 11:04:05 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C4CDA3E128A; Thu, 17 Aug 2017 19:04:04 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: rth@twiddle.net, cota@braap.org, batuzovk@ispras.ru Date: Thu, 17 Aug 2017 19:03:59 +0100 Message-Id: <20170817180404.29334-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170817180404.29334-1-alex.bennee@linaro.org> References: <20170817180404.29334-1-alex.bennee@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::233 Subject: [Qemu-devel] [RFC PATCH 4/9] helper-head: add support for vec type 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: Paolo Bonzini , qemu-arm@nongnu.org, =?utf-8?q?Al?= =?utf-8?q?ex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Peter Crosthwaite Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" --- include/exec/helper-head.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.13.0 diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index 1cfc43b9ff..3fb4c3fc39 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -23,6 +23,7 @@ #define GET_TCGV_i32 GET_TCGV_I32 #define GET_TCGV_i64 GET_TCGV_I64 #define GET_TCGV_ptr GET_TCGV_PTR +#define GET_TCGV_vec GET_TCGV_VEC /* Some types that make sense in C, but not for TCG. */ #define dh_alias_i32 i32 @@ -33,6 +34,7 @@ #define dh_alias_f32 i32 #define dh_alias_f64 i64 #define dh_alias_ptr ptr +#define dh_alias_vec vec #define dh_alias_void void #define dh_alias_noreturn noreturn #define dh_alias(t) glue(dh_alias_, t) @@ -45,6 +47,7 @@ #define dh_ctype_f32 float32 #define dh_ctype_f64 float64 #define dh_ctype_ptr void * +#define dh_ctype_vec void * #define dh_ctype_void void #define dh_ctype_noreturn void QEMU_NORETURN #define dh_ctype(t) dh_ctype_##t @@ -90,6 +93,7 @@ #define dh_is_64bit_i32 0 #define dh_is_64bit_i64 1 #define dh_is_64bit_ptr (sizeof(void *) == 8) +#define dh_is_64bit_vec (sizeof(void *) == 8) #define dh_is_64bit(t) glue(dh_is_64bit_, dh_alias(t)) #define dh_is_signed_void 0 @@ -106,6 +110,7 @@ extension instructions that may be required, e.g. ia64's addp4. But for now we don't support any 64-bit targets with 32-bit pointers. */ #define dh_is_signed_ptr 0 +#define dh_is_signed_vec dh_is_signed_ptr #define dh_is_signed_env dh_is_signed_ptr #define dh_is_signed(t) dh_is_signed_##t