Message ID | 20180723201748.25573-79-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 318F314BC for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:19:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2000E284A3 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:19:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1365A2851D; Mon, 23 Jul 2018 21:19:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1977284A3 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:19:52 +0000 (UTC) Received: from localhost ([::1]:36718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fhiFD-0006qi-U4 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Jul 2018 17:19:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKg-0003t2-PU for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:21:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKg-0005MZ-10 for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:21:26 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:40354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKf-0005MG-SM; Mon, 23 Jul 2018 16:21:25 -0400 Received: by mail-oi0-x22c.google.com with SMTP id w126-v6so3482556oie.7; Mon, 23 Jul 2018 13:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VVvH4YNzTK+zAkrkiwSZ16MOLhc3dhyTKbADCU/yIfg=; b=df7n2tKoNfJT8Q90wVaHu/73Q0m+wpN9Ro3qK+DCDsNyd+2vHM+DrhOyyi4KRvW/a5 Uzk1EGio8oEumvDlgU03kyWKlBqLKal0WgD4th83AZw7988LOPSU1mcLNhceEtoLeucG 9erp0pK1zneURKtj3NlGUZaaNos1eI5xy5I2P6VCXD0x78PAe1U+DcdBS7fgV/2pa9t8 T1qt8N9E1D0U6yHCVoqAIElYMCfaLK15Mv6EMtPilAycMqiSeah0YdWpRyX/jZbD4DJg iSW/uRrWlGJnfgda3Jg0RuNHNFf2NZc7HD6J8VsHn4qUVdp1D0oejP68D1iCCRCfYHMY 9S8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=VVvH4YNzTK+zAkrkiwSZ16MOLhc3dhyTKbADCU/yIfg=; b=qxJ72/x4BwKfdq4k/BVFBAT3akNy9WjVUrx4gbKl7+1RLccdLf+8ZL7R2vIEpej4EB s0wyFJWzsUHM64a0KK8Zr/6mGWd/7JxVoPchfbDUoX7V8YFIfnfVMm90IWE5hJRUSBo0 eHklheH9D/rkeH4TDaVa5ktYPUCBopS9kKcyhThOuD4GoOOMa5aYUvN8XokZIGKy3G2G WRJHO2CYNbrpkp+OX5D9jBhrt3TL7+Lz6BeCQrtW01dBAgWlOU0Vv+n3fm+NJaFZRAra N5IG+RuUmxv/mtyjtYVU6ckVYomzz67Lrht7HW/Bqo/ThJB7Xl4pCMfhiuuK9zz1N3C1 lCvg== X-Gm-Message-State: AOUpUlGYRlOXQz4Mk4+E5irZoUGE7/1kefWJCEjtligrCFc6wKhcg6WZ g7tkZ+G+8gjGdsah9VUg9WFinYjC8sX3Fg== X-Google-Smtp-Source: AAOMgpfePbGjwf87KJy/xl20Bze0dnuEEj7Y8+d5e6bHq7j8DuRwrgb4D1AkJfcF2Y0lXgI2zzi5Wg== X-Received: by 2002:aca:4a49:: with SMTP id x70-v6mr278796oia.11.1532377284656; Mon, 23 Jul 2018 13:21:24 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id r133-v6sm7511499oia.33.2018.07.23.13.21.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:21:23 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 23 Jul 2018 15:17:27 -0500 Message-Id: <20180723201748.25573-79-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> References: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22c Subject: [Qemu-devel] [PATCH 78/99] target/arm: Implement FCVT (scalar, fixed-point) for fp16 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Patch Round-up for stable 2.12.1, freeze on 2018-07-30
|
expand
|
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 33be611bdb..c5be901b5f 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -5454,8 +5454,21 @@ static void disas_fp_fixed_conv(DisasContext *s, uint32_t insn) bool sf = extract32(insn, 31, 1); bool itof; - if (sbit || (type > 1) - || (!sf && scale < 32)) { + if (sbit || (!sf && scale < 32)) { + unallocated_encoding(s); + return; + } + + switch (type) { + case 0: /* float32 */ + case 1: /* float64 */ + break; + case 3: /* float16 */ + if (arm_dc_feature(s, ARM_FEATURE_V8_FP16)) { + break; + } + /* fallthru */ + default: unallocated_encoding(s); return; }