From nobody Mon Feb 9 20:31:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1502993206588401.3788841088642; Thu, 17 Aug 2017 11:06:46 -0700 (PDT) Received: from localhost ([::1]:38487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diPBt-0005kY-Ak for importer@patchew.org; Thu, 17 Aug 2017 14:06:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diP9V-00046O-81 for qemu-devel@nongnu.org; Thu, 17 Aug 2017 14:04:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diP9U-0005NN-9v for qemu-devel@nongnu.org; Thu, 17 Aug 2017 14:04:17 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:38353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diP9U-0005Mt-3O for qemu-devel@nongnu.org; Thu, 17 Aug 2017 14:04:16 -0400 Received: by mail-wr0-x229.google.com with SMTP id 5so25944188wrz.5 for ; Thu, 17 Aug 2017 11:04:15 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id e76sm5963760wmd.36.2017.08.17.11.04.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Aug 2017 11:04:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 036333E1363; Thu, 17 Aug 2017 19:04:05 +0100 (BST) 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=qBqCHRzziGBTUuTJ+hFC9PK4+Y6PwFoHW4T6DhMi7Ss=; b=iQWKJmPdcXWsMryC4GIoHzFXpkmBOXMqQLhqLHuL+Crby+MSH+Max6e0jSeWMEkSHD tR5n5/1mSXV/QYWx7OgPH6jWCvyh96xlxZHJB8fFYm9fLSmW+oGTvC0sG3q43oji7FVR KJlYT3Hxt8+i1b2kdKtFz3Z4Jq9R02fKeUxlY= 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=qBqCHRzziGBTUuTJ+hFC9PK4+Y6PwFoHW4T6DhMi7Ss=; b=EB+XmdHGTS21DY6dfnHnSX0dY4Bn5HRiZefvBvQvZLWcFFY303zYet7+zXIyKO83Yh J/QAE6keyykulwNf3vxoKG8mj9Yzr1DNnhLd3YfDeOuoTLDQ97VBLRdQL94Yy0FDaY31 D5T1ICLne4LdJok6sueH5uQeSDEQ0ZpwiUDPl0NA39Bj8hGE5IRsea6JMSo/sgs3CkxY emPI8fv+l5ksMsScea8OZe+zTS/F4h0g8KeuEWQBuxb+Kf4Jky4P2RU+BZaF606uNWwS 66cRIgVOOqyRq6HnLcQE2mylimXHNzZ48FRlmEf0X5KP6ZKIqQVmuGsgXMaluqhugQ99 pwXw== X-Gm-Message-State: AHYfb5jiE4igqWJNOq/RlQVawy2HXSV9T/JiHr7h0f+toougnKkAKX+6 2cnFRKK6WetYh7fl X-Received: by 10.28.66.18 with SMTP id p18mr2104650wma.60.1502993055039; Thu, 17 Aug 2017 11:04:15 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: rth@twiddle.net, cota@braap.org, batuzovk@ispras.ru Date: Thu, 17 Aug 2017 19:04:02 +0100 Message-Id: <20170817180404.29334-8-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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::229 Subject: [Qemu-devel] [RFC PATCH 7/9] target/arm/translate-a64: register global 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: Peter Maydell , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Register the vector registers with TCG. Signed-off-by: Alex Benn=C3=A9e --- target/arm/translate-a64.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 805af51900..b5f48605a7 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -36,8 +36,10 @@ =20 #include "trace-tcg.h" =20 +/* Global registers */ static TCGv_i64 cpu_X[32]; static TCGv_i64 cpu_pc; +static TCGv_vec cpu_V[32]; =20 /* Load/store exclusive handling */ static TCGv_i64 cpu_exclusive_high; @@ -50,6 +52,13 @@ static const char *x_regnames[] =3D { "x24", "x25", "x26", "x27", "x28", "x29", "lr", "sp" }; =20 +static const char *v_regnames[] =3D { + "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", + "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15", + "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23", + "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31" +}; + enum a64_shift_type { A64_SHIFT_TYPE_LSL =3D 0, A64_SHIFT_TYPE_LSR =3D 1, @@ -91,10 +100,18 @@ void a64_translate_init(void) cpu_pc =3D tcg_global_mem_new_i64(cpu_env, offsetof(CPUARMState, pc), "pc"); - for (i =3D 0; i < 32; i++) { + + for (i =3D 0; i < ARRAY_SIZE(cpu_X); i++) { cpu_X[i] =3D tcg_global_mem_new_i64(cpu_env, offsetof(CPUARMState, xregs[i]), - regnames[i]); + x_regnames[i]); + } + + for (i =3D 0; i < ARRAY_SIZE(cpu_V); i++) { + cpu_V[i] =3D tcg_global_mem_new_vec(cpu_env, + offsetof(CPUARMState, + vfp.regs[i * 2]), + v_regnames[i]); } =20 cpu_exclusive_high =3D tcg_global_mem_new_i64(cpu_env, --=20 2.13.0