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: 911686 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PQVniZui"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40hvnX3n9Cz9ryk for ; Fri, 11 May 2018 12:54:24 +1000 (AEST) Received: from localhost ([::1]:36480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGyCM-0002g2-7m for incoming@patchwork.ozlabs.org; Thu, 10 May 2018 22:54:22 -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-Google-Smtp-Source: AB8JxZq5ke5XaOalPK4PiMksCmiPN0o3STzHJX+PfTkLql+Ibgqm8J0EhOlDIMKoXbq1scFHA7zptw== 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+incoming=patchwork.ozlabs.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(-) 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 */