From patchwork Tue Mar 12 16:19:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 160122 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp13306188jad; Tue, 12 Mar 2019 09:31:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaBm5ZJJEqXnqcbltFOiueQJixMloiKeh/L7knyDx9z/wXW07YVyC1pAo+SPXFN3edY5J1 X-Received: by 2002:a25:888a:: with SMTP id d10mr33012675ybl.254.1552408293049; Tue, 12 Mar 2019 09:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552408293; cv=none; d=google.com; s=arc-20160816; b=XsbDsBnEspefo1c/rqQ4seWQJ667RVFBDakHunF+vlTvmlEbIFPQHVup84q3jB1u6L le40oQiOsawcB70+k7sQRhmx8RoqfLyO6DDFBYjp6Aaz8/iaUWSmdVW89nZ4bPwkNQMc qchEcbZbt2LDwzSfr5mRFMZRkHMhdRktEaRQJ4xj9GgNkbxGoTuvAeOTXKzD+pE/RdSM 0sh07lnqWukBmyIInXdHSeD90+lY1zPCkkRZaNXjkyd98eIE3I7sq7jjP+Ticwx6yzWP guQz+rdSTk6Nk/hl0UmugVV+WFLmL1LWcrG6FKfuhDQyuIqHAXQ5/qBslDl/oTVMvE/G D4FQ== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=qKUZoF/a2Kkdnv24SRPFQ5wuvupHDLeUIyF9pRIxhQc=; b=Mke9JVeujFxMQUPcC8h8b3yXpvvlbPTTlqcn2kxZvzg1Gc+QdjAWL0XgJMldq1DDAG qWJ2Sgah8EZQPr1vJHKi8nv0Tky+i9ZcpJIzI6fkPU9UHog7rbjSq+ndeexssi9PF8WP 1Fqf2HJ/vhm2dUloz1Z6ke0zHLgjjEI+d5Njpo8bkExg9HfbDc8+zhZYWrG7ieMwUqVL uHF4e18qS9F/cq5ZTRldfuVSTOpBoY9gZRwiul2BO9GFJZAiamGEqsw9EmB20B7HkQ4a XHA4J1LY9e3qBJMXrGYsvjiN3yiEYmhHGa/vz8ffozahiNXi2mCErznTfKibI/oWTuUH oJ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZHsnqOCU; 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=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 84si5151230ywm.387.2019.03.12.09.31.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Mar 2019 09:31:33 -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=fail header.i=@linaro.org header.s=google header.b=ZHsnqOCU; 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=linaro.org Received: from localhost ([127.0.0.1]:55421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3kJQ-0007Wo-FK for patch@linaro.org; Tue, 12 Mar 2019 12:31:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3k7o-000689-Q1 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:19:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3k7h-0003zM-Pu for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:19:29 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:40047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3k7c-0003uY-LP for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:19:22 -0400 Received: by mail-pg1-x52d.google.com with SMTP id u9so2188033pgo.7 for ; Tue, 12 Mar 2019 09:19:18 -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; bh=qKUZoF/a2Kkdnv24SRPFQ5wuvupHDLeUIyF9pRIxhQc=; b=ZHsnqOCU5MwAcNbBCt5T/I1p7yvtyJM3YELgKGhYC9H6omqpobmsCFgKGzeIfilc5r Gg93k/4o/YNFPEkQprfPnUlvEpkSVxkqlgVrYVC67zXV6y9VK1glmxpsQksZhgs/j+L1 hc7a33Nsi33pW2vZRxs6hsP8bDSixP/6f9D4gjeFyEydKMuZYEmC1MeVbDBfk7k7PW7d /mnReKbmSUdNwSbjWna7txl+eD+UAnP56vJtJJA/o+5Qak6VdzGxQk7rNOQPNACxcmkK rEDgNXNfqYPizXbiqTNtI0+myrXbOyNc+cImNoK5uRC0A97on962fUNzhPqj5bFJasOX XRog== 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; bh=qKUZoF/a2Kkdnv24SRPFQ5wuvupHDLeUIyF9pRIxhQc=; b=JMvBXG2CF3AINSByTVWrJw1hbvP44KAbSGu87PqUerYnM+P5poWSDK8aKLNLKLSmYO aO/Xh1P8tEVhaeBA5463sJQKURIzKn+XfygBl3ivoWEK1Rlgegyec5dherG6o8vZwS+r XBIO6aOQ5F8DAGGAmQ4fHXEDw3ojpxsO5Z52F6tx8+nQ07cVqj0UmQpHbQGB96eNis80 ZepaQHjmZ3F/+K7w/zsYhzVVhWVDf95Gfuhz5RH60VZpLpZuG94GGjfoam7phvwtjPF3 1fyKXHM74Vosm6cJN2iheBzVMvWDIIN3ehnVB7SjxU46oY2Zy6YQpiseEFysFMAendo5 Slvw== X-Gm-Message-State: APjAAAWbG0bpJYLGyTxw2Y/MBIR4NbEkfh3rksbAHe8u8Tf6a4HalAIQ UuhGsj0Ah2pezJCp3Kp1Ap4sDwTvhSs= X-Received: by 2002:a63:7341:: with SMTP id d1mr36532084pgn.405.1552407557155; Tue, 12 Mar 2019 09:19:17 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id q62sm12605644pga.32.2019.03.12.09.19.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 09:19:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Mar 2019 09:19:00 -0700 Message-Id: <20190312161904.31130-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190312161904.31130-1-richard.henderson@linaro.org> References: <20190312161904.31130-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52d Subject: [Qemu-devel] [PULL 07/11] target/hppa: ignore DIAG opcode 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, Sven Schnelle Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Sven Schnelle DIAG is usually only used by diagnostics software as it's CPU specific. In most of the cases it's better to ignore it and log a message that it's not implemented. Signed-off-by: Sven Schnelle Message-Id: <20190311191602.25796-7-svens@stackframe.org> [rth: Free the nullify condition.] Signed-off-by: Richard Henderson --- target/hppa/translate.c | 7 +++++++ target/hppa/insns.decode | 3 +++ 2 files changed, 10 insertions(+) -- 2.17.2 diff --git a/target/hppa/translate.c b/target/hppa/translate.c index c4815d7e1a..f3e78b8e22 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -4048,6 +4048,13 @@ static bool trans_fmpyfadd_d(DisasContext *ctx, arg_fmpyfadd_d *a) return nullify_end(ctx); } +static bool trans_diag(DisasContext *ctx, arg_diag *a) +{ + qemu_log_mask(LOG_UNIMP, "DIAG opcode ignored\n"); + cond_free(&ctx->null_cond); + return true; +} + static void hppa_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs) { DisasContext *ctx = container_of(dcbase, DisasContext, base); diff --git a/target/hppa/insns.decode b/target/hppa/insns.decode index 55ff39dd05..098370c2f0 100644 --- a/target/hppa/insns.decode +++ b/target/hppa/insns.decode @@ -525,3 +525,6 @@ fmpy_d 001110 ..... ..... 010 ..... ... ..... @f0e_d_3 fdiv_d 001110 ..... ..... 011 ..... ... ..... @f0e_d_3 xmpyu 001110 ..... ..... 010 .0111 .00 t:5 r1=%ra64 r2=%rb64 + +# diag +diag 000101 ----- ----- ---- ---- ---- ----