Message ID | 20190401210011.16009-14-mdroth@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp939602jan; Mon, 1 Apr 2019 14:05:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSXY4+VYRP0HcTtLrO1yRe9l+eIJJe+pyl/yvyu+FOglpW4cjYZo0bSI8Qz7lkNsORsVqH X-Received: by 2002:a25:4405:: with SMTP id r5mr53830913yba.413.1554152751964; Mon, 01 Apr 2019 14:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554152751; cv=none; d=google.com; s=arc-20160816; b=mxO/RDOobEFwTH/QESDBs6yhAHoQRoHzj8AwugAgGa0WzG0W7dGy/p6pu/jCVrQz9l X32Y+TWY4BKPvSnt27OW3wpUwxYzPj6JKvlAvWZi5ZQ04dSaxXgpxT1+086hvwXvbZ0J cDf/fbhRkvi9fA4csH/Vq3HEbuIsRf0vwA/9xfH5nIH0UiUpqN8nv8+uUK2llBCYsZqQ xfqK4m8pr2KraBfYYjgYEkvvQECFfCFpd79jy2njDB8ADlRjLVkRkjNzEsqoJCP+H+fg TRuN7XhYo1KBY7fiQ5U9FtAC8IEz6OfRszKOiQwFRiwejc8Ci9hY5OBT73erETOpfzzY zxVA== 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:message-id:references :in-reply-to:date:to:from; bh=TdVfPqFse6y4bkid2iD2mTUPrJIi9vk/IPbpVTcHDF4=; b=D+G2meMM/Bx/cCN/3VKSxTKhVz2mGhsF+/uycu7sQfKsJCgko0DES1JnB6EbH5lofN auK70LduwDHDN0qQQC+fiqrgPlyCXVWTHqgrtHatWabJRkUNMwEVAbXQjjCa0foNgb+e 8dY+GTxIUJIXSlFq7vOdRqk7U/DY+8yKa2V2/+bnqqYgsZAvTMEdgn3HfMYhtqyJtTwl BosarSGz19imQULIeQhvoSUwK1xLBDhHvskB6PtpZnR5feMWaF3ziJUad2I+e9BjVsmr DDcixkVg8wjsMLOM2psw7ZtwiEFlogh+Q/GMAwg08jDffX3P2E9s4TZwDLoYK9x84HXb fFVg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s15si7070531ybc.182.2019.04.01.14.05.51 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 01 Apr 2019 14:05:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from localhost ([127.0.0.1]:38542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1hB47r-0004Ty-F1 for patch@linaro.org; Mon, 01 Apr 2019 17:05:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mdroth@linux.vnet.ibm.com>) id 1hB43w-0000oZ-PQ for qemu-devel@nongnu.org; Mon, 01 Apr 2019 17:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mdroth@linux.vnet.ibm.com>) id 1hB43v-00033f-19 for qemu-devel@nongnu.org; Mon, 01 Apr 2019 17:01:48 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <mdroth@linux.vnet.ibm.com>) id 1hB43t-00030l-Q8 for qemu-devel@nongnu.org; Mon, 01 Apr 2019 17:01:46 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x31KrYJ4050042 for <qemu-devel@nongnu.org>; Mon, 1 Apr 2019 17:01:42 -0400 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rkqrc06gj-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <qemu-devel@nongnu.org>; Mon, 01 Apr 2019 17:01:41 -0400 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <qemu-devel@nongnu.org> from <mdroth@linux.vnet.ibm.com>; Mon, 1 Apr 2019 22:01:40 +0100 Received: from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 1 Apr 2019 22:01:38 +0100 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x31L1bpp31522954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 1 Apr 2019 21:01:37 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8ABA56A04D; Mon, 1 Apr 2019 21:01:37 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38FEF6A057; Mon, 1 Apr 2019 21:01:37 +0000 (GMT) Received: from localhost (unknown [9.80.94.43]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 1 Apr 2019 21:01:37 +0000 (GMT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 1 Apr 2019 15:58:47 -0500 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190401210011.16009-1-mdroth@linux.vnet.ibm.com> References: <20190401210011.16009-1-mdroth@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19040121-8235-0000-0000-00000E781E4C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010857; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000283; SDB=6.01182941; UDB=6.00619269; IPR=6.00963683; MB=3.00026249; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-01 21:01:39 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19040121-8236-0000-0000-000044FDBFF5 Message-Id: <20190401210011.16009-14-mdroth@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-01_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904010135 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 Subject: [Qemu-devel] [PATCH 13/97] target/arm: Adjust FPCR_MASK for FZ16 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
[01/97] target/arm: Fix sign of sve_cmpeq_ppzw/sve_cmpne_ppzw
|
expand
|
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 9526ed27cb..0dce472aae 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1263,7 +1263,7 @@ void vfp_set_fpscr(CPUARMState *env, uint32_t val); * we store the underlying state in fpscr and just mask on read/write. */ #define FPSR_MASK 0xf800009f -#define FPCR_MASK 0x07f79f00 +#define FPCR_MASK 0x07ff9f00 #define FPCR_FZ16 (1 << 19) /* ARMv8.2+, FP16 flush-to-zero */ #define FPCR_FZ (1 << 24) /* Flush-to-zero enable bit */ diff --git a/target/arm/helper.c b/target/arm/helper.c index c24c66d43e..c2287c76e5 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11320,6 +11320,11 @@ void HELPER(vfp_set_fpscr)(CPUARMState *env, uint32_t val) int i; uint32_t changed; + /* When ARMv8.2-FP16 is not supported, FZ16 is RES0. */ + if (!arm_feature(env, ARM_FEATURE_V8_FP16)) { + val &= ~FPCR_FZ16; + } + changed = env->vfp.xregs[ARM_VFP_FPSCR]; env->vfp.xregs[ARM_VFP_FPSCR] = (val & 0xffc8ffff); env->vfp.vec_len = (val >> 16) & 7;