From patchwork Sat Sep 21 04:32:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174173 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp248103ill; Fri, 20 Sep 2019 21:33:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFWr0IU64J6r1PuBixE7qxhy1H8s+qL2gkQO8WrwDEVcmkvd9F8SS9VFvm33R/gqC+dvoC X-Received: by 2002:a50:b0c5:: with SMTP id j63mr11987921edd.90.1569040426188; Fri, 20 Sep 2019 21:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569040426; cv=none; d=google.com; s=arc-20160816; b=Vs+X15zueRXeVlqjQHjc/XedDK8Mcp4SJ/9mZd7Jm1KXMzfR2zhvLSK2X/GcjsrAq+ r4uXfqqkQ7E/bo/lgG9lOUred5AS0obi+JXxtyuB3Kfd6UyIfcErxn4to34Xx6dZbB2g EIqZq/l3aDdziIZj1+O0gOdaKAj4Pob/rct5VcLOBe6LwPnAIRWpaARTCtnyDFkF56sf IJwfU6ps16TqO/FHNKZJxMEYAH4o37XSx+R6D+wEpmQYmoPkOgXcTsIgXukV2u5Qo+Bd 9IdivRM/ZrZnBdhsXyNLjl/NdlSfCJcPzIuOT2IDrzTEhIiWWsZ0dXW1aWt4L4DXeSBE zhig== 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:message-id:date:subject:to:from :dkim-signature; bh=Bv0ijY4ZvCut6ypRDGH+6rB0hF9DxDyueNqpNNGnGIg=; b=jgmw2SboUhQHoRPS7pbsRot1TPikwDH6rOVl3eolQ3KfuAzZusLH0Nn9iVEE29f1nk FquxxR7m7wl+qT2SKoCifSVppjEw30pmF2vGXzSiIyzUjGaQMy4+Dcpp8BUxSzBMQ17x faxOyaSFgWCnYP8FkTEWIj+TNiMTrJNisFm3R4KSlLM5QobwvzscLvjNUbZyCuZ0tbXJ UMjbQsCmgOxN+rWzZnLEX3ESuHw1BmFssWRfmWQ+kOamnoV70kphmRVbxvbk7vTP0ORb +iDWz95XnBNoCx0xarMQfpqZfToy5GUTQkAMl++lqdlPvQ9VsmMx7DSc/zSyejyCYGRu DPyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uV1kKV2T; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (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 o21si2073331ejr.208.2019.09.20.21.33.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Sep 2019 21:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uV1kKV2T; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX5c-0003J2-TO for patch@linaro.org; Sat, 21 Sep 2019 00:33:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40374) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX4y-0003Ih-1A for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBX4w-0006NW-E4 for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:03 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:37196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBX4w-0006LW-2g for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:02 -0400 Received: by mail-pg1-x544.google.com with SMTP id c17so4987197pgg.4 for ; Fri, 20 Sep 2019 21:33:01 -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; bh=Bv0ijY4ZvCut6ypRDGH+6rB0hF9DxDyueNqpNNGnGIg=; b=uV1kKV2TWvu0/+DiD4yf0rfGkDJvLQ1c1ZapvOuYGP5ZpMaHgPS2Pr/HINI1ZC3QVW eYqku29gFydbAJwtkOQYQ1F45Lsj3T8/IjSiJGvO3fLD0lrVqcR9wcZTU/Ha/1Gu1A5s HCVTbnPRuiXDUSgsoaiqRl8EP3U1wa0fy4YZUtiAwXs/ewQXDt3THfvHeuBjwbqF5IjK JtzO5maGe7ez3yddTi2ZcGgW+mu0JrtvXDboVTW3kbeYmE+rjcbACBil/9DcqFL1zt7I xleeW3IFRVC4ttK2yi+R53hWvDajmZpjQdWH4PD7NqnzMCcy0nX/S89ynKbrvqN4u990 IjoQ== 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; bh=Bv0ijY4ZvCut6ypRDGH+6rB0hF9DxDyueNqpNNGnGIg=; b=DjBwPwcDANYXdH+ujT3zzeIX2Rs774IXtOIA0cb260qcE942Aqp6anps15HdzLFfqV qIKS0o0UkOOnrFOkqVJ5HsFD4OmwPhV3ZSrouhAeTM3murgkTcnNoVyvWyswpRhmBkM+ CRRfmXb5kOZhlevur65h/sJG2iIZiGUSX95FhpVJe+uBovq2iMIa5OJQofHejIkK8avT F0LZWxnaBPm+N21l4Iagjex9Gvw9hDf3Xw5Bj5aJKo9B/lVeGVTgyoq+/dx49qD8uSxt NGqExWCQawoUKJor7xzLxluJLcVJLlwdzOFkPINvgTNpcgh11l7a1eIqGFGtjrZqWxIz hS+Q== X-Gm-Message-State: APjAAAWSl8ghI8qpK8A9wV2NWzZ07CYe88JW+85VsEhRfzArj6cAoZy/ w61xFjeIS/jXtTGLN5pYeDh22nXyVBc= X-Received: by 2002:a63:b70a:: with SMTP id t10mr19310330pgf.25.1569040379897; Fri, 20 Sep 2019 21:32:59 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id 193sm4179986pfc.59.2019.09.20.21.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 21:32:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/7] target/alpha: Fix linux-user exception for CVTTQ Date: Fri, 20 Sep 2019 21:32:49 -0700 Message-Id: <20190921043256.4575-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 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: , Cc: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Alex's new float_convs test dies with SIGFPE for alpha-linux-user. This is fixed in patch 6, where I mask the exception similar to how the kernel would, when passed through the software completion handler. Patches 2 & 3 fix bugs that I noticed in the process; the rest are simple cleanup, trying to make the code better or easier. r~ Richard Henderson (7): target/alpha: Use array for FPCR_DYN conversion target/alpha: Fix SWCR_MAP_UMZ target/alpha: Fix SWCR_TRAP_ENABLE_MASK target/alpha: Handle SWCR_MAP_DMZ earlier target/alpha: Write to fpcr_flush_to_zero once target/alpha: Mask IOV exception with INV for user-only target/alpha: Tidy helper_fp_exc_raise_s target/alpha/fpu_helper.c | 15 +++------ target/alpha/helper.c | 68 +++++++++++++++++++-------------------- 2 files changed, 38 insertions(+), 45 deletions(-) -- 2.17.1 Reviewed-by: Alex Bennée