Received: by 2002:adf:c793:0:0:0:0:0 with SMTP id l19csp544681wrg; Fri, 7 Jun 2019 12:19:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4IJaBjMXDlnc7+gJSJgbZAHg0HOl8K7+EakQry88gzqrzCqeVsMD+bUFF/DVwGn15S+PS X-Received: by 2002:a0c:bd86:: with SMTP id n6mr16579579qvg.183.1559935186164; Fri, 07 Jun 2019 12:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559935186; cv=none; d=google.com; s=arc-20160816; b=uYkuS1QnFITfGb/7pKn3KSY/OG7ihQZ4v5n6FAUxOWTY6gTM0gcHOjPWRmGAkg1kWN IGG5VwBHSIFWvSc+jea2GjDRXK9goAxRp/QmpgC1XJsZvQ94mcTey+mglRAdsb3c8kdC cKPkgtxIdPH0zKRl7Nv5NiDJE25o5Z8U86nNSOfoHFEmY87LSGjm/dipuaMuagJVTNYD GYrDs9U6Fye+cdxhxlXQOZLF+UnRbT/KSQnDVQPhxWTHrihaUYYUXqGbxpDER51DMjpN TM/ccFj0ZzziwQiRC+9LFLHZAtVsSgP8gALjCaZoqnH+wFo9gbJGnBOh3wSw+FAs8GFj NdtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:openpgp:from:references:to :dkim-signature; bh=rmp/CIxrfYaQ3kAVAZxIGEbkm2dLESS36pKtPsSJcHM=; b=TMBaOchffnhzotkTbENxf6r8jWkOVT8XhIF+5VPlL0rJotQsNGg+GgppSasApw68Pq cI+bTs4H/hj6ojy7kEnlXColYZ05zw9RYjUyTAiwQ6wQuktFBPw8Ujk4YGU8b4nIH/LY omOuv3WeQobS2iBr54vRu4GVGalIJ7PogkRNvgND1IPbn4wlGUeulJA2SviXgYQNbe7a ViRwYvgpXXF6W4U2kJxJulTfY+5kXcUyh3x66HtaavhjK/2k866Pd4aRR3GZmVKtHswo nteb8/FDyV4gFk12W34K+fkeC4Sx1U7bqpKrlQph/PfLFcBzNrkFyRPnxz/nk7mQ2sGQ wyYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YvIRYXXI; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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. [209.51.188.17]) by mx.google.com with ESMTPS id d5si1294800qkc.64.2019.06.07.12.19.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 12:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YvIRYXXI; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZKOv-0003K7-OT for alex.bennee@linaro.org; Fri, 07 Jun 2019 15:19:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56231) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZIPN-0000K7-99 for qemu-devel@nongnu.org; Fri, 07 Jun 2019 13:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZIPL-00070v-5f for qemu-devel@nongnu.org; Fri, 07 Jun 2019 13:12:04 -0400 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]:46170) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZIPK-0006tb-UZ for qemu-devel@nongnu.org; Fri, 07 Jun 2019 13:12:03 -0400 Received: by mail-oi1-x242.google.com with SMTP id 203so1914686oid.13 for ; Fri, 07 Jun 2019 10:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rmp/CIxrfYaQ3kAVAZxIGEbkm2dLESS36pKtPsSJcHM=; b=YvIRYXXI0yKEi91ekgNbKHxR3IE7Ep4qvlWeoE4FpY6x0V3rlmz4WdAEXqfOoBPrgR 64wlc5+65kjA+5YuIuMczkAMsdQVyJiIkiX6WWNkSc1k76zhYEKqhogosGyJOL5mR4to gSXJPwRBvEzbfBo1aQmaaArGTBX114PFLAhywqAy//N3Fh3+rbeFfV8OvWNpr5V1K8Z1 jY3gSaVccfpAa7pNhdCeRiNWQrAEX+d/KOaKMxulsKCMPILEf6Qm2ThMA1caCuhMdk9C X0UV0lAyDv0O/fdqVV8sjADP/+Fy8S3WdYse8/YoIUI1yKdcOt4Q+xGEWIhpDcyBjwAN BrbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rmp/CIxrfYaQ3kAVAZxIGEbkm2dLESS36pKtPsSJcHM=; b=DVPKzDH6vnU0UWb6iXjRR7pyKtnQzl4PvC3h8ZZrb4m+bUu+49feDRGRgipeJGtmyS bJoL+ZlNxIdLl+R3HCD72TxDls9uqlOtydZM7T0veFyCXddfaf7gGGp294Pgr5OCzkjA d1ZOPcFamNDty5UpozjNwbr5Au4VoNX9Oun1HPi3FhPiqKcRXKMip6eKPvuU/OGOay7A LG3KbTYcb3XojIYrGty/h0Znf0uOVgvuMEvUGn2fEeKy24Qdo6IDBk4/l1qV3hbt1Ld/ VNftD377JM7esqU/7misedIXpWnGJ4v+kxxIv0SulaxlewWcc9+y0s87i22kno/u1H+c UFow== X-Gm-Message-State: APjAAAUekV6WyQyO6HbwXx2hwmFDN3YuBpq2MbOs7Vg7UqAhStygkdtH f8poYOh4X5FS51ybTKiSFh6RDRj00SCbwg== X-Received: by 2002:aca:fc81:: with SMTP id a123mr4502841oii.75.1559927519526; Fri, 07 Jun 2019 10:11:59 -0700 (PDT) Received: from [192.168.3.43] (200-56-192-86-cable.cybercable.net.mx. [200.56.192.86]) by smtp.gmail.com with ESMTPSA id k17sm925040otl.13.2019.06.07.10.11.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jun 2019 10:11:58 -0700 (PDT) To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20190606174609.20487-1-peter.maydell@linaro.org> <20190606174609.20487-12-peter.maydell@linaro.org> From: Richard Henderson Openpgp: preference=signencrypt Message-ID: <4ad24b88-7013-e925-16ac-398d5e5c4619@linaro.org> Date: Fri, 7 Jun 2019 12:11:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190606174609.20487-12-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::242 Subject: Re: [Qemu-devel] [PATCH 11/42] target/arm: Add helpers for VFP register loads and stores 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: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: mSrA0ljasWRL On 6/6/19 12:45 PM, Peter Maydell wrote: > The current VFP code has two different idioms for > loading and storing from the VFP register file: > 1 using the gen_mov_F0_vreg() and similar functions, > which load and store to a fixed set of TCG globals > cpu_F0s, CPU_F0d, etc > 2 by direct calls to tcg_gen_ld_f64() and friends > > We want to phase out idiom 1 (because the use of the > fixed globals is a relic of a much older version of TCG), > but idiom 2 is quite longwinded: > tcg_gen_ld_f64(tmp, cpu_env, vfp_reg_offset(true, reg)) > requires us to specify the 64-bitness twice, once in > the function name and once by passing 'true' to > vfp_reg_offset(). There's no guard against accidentally > passing the wrong flag. > > Instead, let's move to a convention of accessing 64-bit > registers via the existing neon_load_reg64() and > neon_store_reg64(), and provide new neon_load_reg32() > and neon_store_reg32() for the 32-bit equivalents. > > Implement the new functions and use them in the code in > translate-vfp.inc.c. We will convert the rest of the VFP > code as we do the decodetree conversion in subsequent > commits. > > Signed-off-by: Peter Maydell > --- > target/arm/translate-vfp.inc.c | 40 +++++++++++++++++----------------- > target/arm/translate.c | 10 +++++++++ > 2 files changed, 30 insertions(+), 20 deletions(-) Reviewed-by: Richard Henderson r~