From patchwork Sat May 12 00:32:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135587 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1563935lji; Fri, 11 May 2018 17:44:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpmg4tKDXf11Iogg/YZcWY5qRrQ/0b7Ci1urrhkz2wfNTJbok/wBpxllzCxQQgTqhnPc4Ar X-Received: by 2002:ac8:1663:: with SMTP id x32-v6mr240778qtk.326.1526085851042; Fri, 11 May 2018 17:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526085851; cv=none; d=google.com; s=arc-20160816; b=T8PHxvhZILyRpPi1NlVavS+j8CjH47UdWjun4Yb7J1My4oy+gpB6Id6MaUeBc9DF6g BsWqaKkVqOCQTm6/lS++XaO4VIw+0AUqfcIRFFb9su1ixxNHuBnI/Ul6ETY5PnECZhKT d0thu2bLdIt83tcwVXEqW+1HRLsT4G+vX0erberbluFKUwlLR4CHuLpk8yfnGi5pjyFD /dXR8amlggxCHgqW7+2NP9BGHko5qDUYlNv4+UDJ9+hbmml3M050ne0f3lNSCjBMivmM ahIx2Xgeszk1ewPmcL/oQloFKwWo4+VLBz00msQT2mdxgw5FDU9krRVJ9taCt46fHWlM eSiw== 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=ahx5TxsYCFJPvg60ecBo+YmrSbBJ1ycPaPAC0BGwSvo=; b=C9bJ6tpshQ9o3s5Nk2AXxgEGruk71fnTrR5367DE6xFJUBRqGzwzKzImPietzwBhr9 NdOUEETMmAaEXRg48lzxx3SBhJml10IvD/9qC9LgQos87DTHkeVrt4gzIlaHgkfxJJGd 4+qzxAiEUfqAnHAsGkU97Ksc3jRxu23DxrXiBul0HyZsvup78H1LUfKojilofMwbjE7d WJwNMwHD3lD1/tPLpnqg05iNYlSS4navSxoI/cLkdinDXYATuooxEC+ISxzb5La4IBRY QK4Cz90ZmNUk7OEwHjqhto0OdsN6o56/xv3Phy50AvJBf0pUtqukzCYorIR+9iZn9N66 Z+AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kHV7Im7y; 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 q16-v6si4573641qvj.8.2018.05.11.17.44.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:44:11 -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=kHV7Im7y; 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]:59075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdu-0004xk-DO for patch@linaro.org; Fri, 11 May 2018 20:44:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHISk-0006tp-8C for qemu-devel@nongnu.org; Fri, 11 May 2018 20:32:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHISj-0008Ed-Dm for qemu-devel@nongnu.org; Fri, 11 May 2018 20:32:38 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:37390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHISj-0008EL-8x for qemu-devel@nongnu.org; Fri, 11 May 2018 20:32:37 -0400 Received: by mail-pg0-x241.google.com with SMTP id a13-v6so3074850pgu.4 for ; Fri, 11 May 2018 17:32:37 -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=ahx5TxsYCFJPvg60ecBo+YmrSbBJ1ycPaPAC0BGwSvo=; b=kHV7Im7yZzzbjzgsb06GeCF16uLqcXxsBU0038fSlEEplhPiWZgRtnpwY1WTrwykIC VHAs4uSjeVMAhdsbwOfz7umvc0ScWeYFxHJAqm9K1Z5YgIkgbIHJVxoDUn20BBXnBEsx 30Mwu+VUX9iLX4fjwgGhr+I45cP3T4cu1L7+w= 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=ahx5TxsYCFJPvg60ecBo+YmrSbBJ1ycPaPAC0BGwSvo=; b=b7TKl6YPT/GB5EfWFLaiUbBcJD3toCZM3Gdu7Z3kJ7BbeJTuIoATSA+Auppzk5+evR nbeJ3MHWNIJGmWxc3wAZaNvu8p9Krwx0yW0oTSU6xQzMmC98e+0TatnKVgxGrs4UkTLw 1NiZEh9T6zJ0IGZds+C5tBfe4Tj/JcB8jBdtmW7EsKWJJCpZOJ+3L86LU20N61fragPl jOUbgjLtc+Q5ZxJv8Jr/Fi18COJR9Vk+UVGoZSZUw4IRSo5O8JFD5tT2I4fBadEiqPRe 3xUDEUszF3hG4zbVMfFRK5p2e/o/KTm6nT5tkypsHqDaqtBUsOO72JCTPLZlae5LBweS 5VGA== X-Gm-Message-State: ALKqPwcSD8if/LFt+SL7XDXxT5AxB5+L1ZU8Bjf2jn0tpeGc5pPsJLQH Jef1d62SLc85qmrnznjTS2TqI+PwQi0= X-Received: by 2002:a63:b54b:: with SMTP id u11-v6mr950325pgo.365.1526085156053; Fri, 11 May 2018 17:32:36 -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 v186-v6sm7599735pfb.45.2018.05.11.17.32.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:32:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:32:17 -0700 Message-Id: <20180512003217.9105-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512003217.9105-1-richard.henderson@linaro.org> References: <20180512003217.9105-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::241 Subject: [Qemu-devel] [PATCH v4 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 35997969b4..a0b0c43d12 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 */