From patchwork Fri May 11 02:44:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135476 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp330664lji; Thu, 10 May 2018 19:54:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrwrqvpGSG3MACDguS1haopTbBGH4Oe+1L4soLLYkwr7lchlKAOiI1E/ntO+t4aZz7Qt1Ds X-Received: by 2002:a0c:e78a:: with SMTP id x10-v6mr3606314qvn.13.1526007246178; Thu, 10 May 2018 19:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526007246; cv=none; d=google.com; s=arc-20160816; b=RbxTV1bh/Y2LhmnHKZWB6AVwLfo6KDZXV+UncvQZ2gq392wbeRW8VzfWLQRcJBXUby 9ShQ9iQKGBuDDetERRf5Aq6/8dteuGJ3i3h+Cy3C6WAM7D9FJFG3gAn7hAAMVQoLF74C OyqTt6GY/k4FgWf8GIzwDeiL6L3k7fZ9UThrX7kBVoOncFTiC02ZybYzNoe8spUdtAOP fAWFQql7UuX0oWc16hIPWFOOrEddzLq/20YAOnqcy/FCouM1bbn2WB/4jkpDOmwBnukE b9UCJsuTL71emEizyavrCze0bMm5KufKV4K2jhbwFfTTztu/dSbplU4UAthyeS/JT5Db p4TA== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=3wO77nwWyvUTdrKptxzVk6DCxG2ZwD2EuEIfUFsq+dw=; b=lLl+outDnvxa+y6BxG9DuGC8yVpfF8VBkLrp9knLJoE1eAaq9QkVixdIAc5rVRPCPv +m961fd/hyjWNOHbpOxyvg4QTt4enQIyNlizzN1HkAh6THGS7l3EVLnKF6LThA2BJsFx F7H6NYIbgzTEj7O5GwcKFNNWWLAx7gFl8aeSSIsqqoF732WERRD2KZbs5+BJkH/4991E A5o9URXyxWhk23xiH0UMTjk1hDEDKnJldc53+orptf6a3J++NxVRhSWud54q46ZKGmJN EZJWkU49Jj2vkFrgVi0Ot+WJT7nj5XP0Kw6ShGFMOSGEnWLwHLcVQok1wKvrKY4/Bpdt tiBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PQVniZui; 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 t69-v6si2070181qka.191.2018.05.10.19.54.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 19:54:06 -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=PQVniZui; 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]:36480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGyC5-0002g2-Fs for patch@linaro.org; Thu, 10 May 2018 22:54:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGy3g-0002Y9-0T for qemu-devel@nongnu.org; Thu, 10 May 2018 22:45:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGy3f-00068O-7W for qemu-devel@nongnu.org; Thu, 10 May 2018 22:45:23 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:44342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGy3f-00067p-2Y for qemu-devel@nongnu.org; Thu, 10 May 2018 22:45:23 -0400 Received: by mail-pl0-x241.google.com with SMTP id e6-v6so2408664plt.11 for ; Thu, 10 May 2018 19:45:22 -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=3wO77nwWyvUTdrKptxzVk6DCxG2ZwD2EuEIfUFsq+dw=; b=PQVniZuih+307S88xGMYO8MVY4aNSvs8VZnf0NJQp1I+e/bXFAVWRaTXp400Jpowkt TfbUEnBMtEk47fa4Yn2Zobza7xWRLTdHxtPCNqqtkETapWoMq4oCmnrTkFI3McJZj+qj /BUsxTYpsQhBehN95Jjwxb/jIUwroNXLsFEvQ= 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=3wO77nwWyvUTdrKptxzVk6DCxG2ZwD2EuEIfUFsq+dw=; b=qDKfJE7nkxK8MIt3WbNAMxL+ABbXMUW8XARumTz00qWPNWyS++FmHa7K8xwtBY1dhM 0W+zLreZjOfgGQtcVnathI/Uql/kJ2avG+HV6BLqqhU5QLAzivBHwf3CVVbd/VqmJpM3 MxWOqHW739BmCaONBkit/0tykfhm/9wQWjFu3+OmuUGv+R1MXT3/QYPZ2i8gkOT9+Tmh mf43ceChJ6q/IWs34j5Acb6rsg+FZjGKli4L0sJmScJ6lwi6NFS+giml0BT8zALgCvvZ 1MV99hrq+rDmGgckSjAMtKh1IQHuZ4DxxzOL04RouBqkTVyJjqmTxsYNjW495DoFgkM+ OF9A== X-Gm-Message-State: ALKqPwdCWVk2NVkb+YlhqkGLTr5t0rtM4MZN7f7PHqzoq5wA78gGXQg0 jdcVDY1zLriFrLlw0Kuc8CQU8NnFjSk= X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr3764226plk.256.1526006721797; Thu, 10 May 2018 19:45:21 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id n18-v6sm5420915pfg.36.2018.05.10.19.45.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 19:45:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 19:44:54 -0700 Message-Id: <20180511024454.31679-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511024454.31679-1-richard.henderson@linaro.org> References: <20180511024454.31679-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:c01::241 Subject: [Qemu-devel] [PATCH v3 11/11] target/arm: Fix sqrt_f16 exception raising 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@linaro.org, alex.bennee@linaro.org, qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée We are meant to explicitly pass fpst, not cpu_env. Cc: qemu-stable@nongnu.org Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index d77eda7cbc..009a151379 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -4976,7 +4976,8 @@ static void handle_fp_1src_half(DisasContext *s, int opcode, int rd, int rn) tcg_gen_xori_i32(tcg_res, tcg_op, 0x8000); break; case 0x3: /* FSQRT */ - gen_helper_sqrt_f16(tcg_res, tcg_op, cpu_env); + fpst = get_fpstatus_ptr(true); + gen_helper_sqrt_f16(tcg_res, tcg_op, fpst); break; case 0x8: /* FRINTN */ case 0x9: /* FRINTP */