From patchwork Fri Jan 13 06:28:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jitindar Singh X-Patchwork-Id: 9514681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EF6B760762 for ; Fri, 13 Jan 2017 06:49:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E02A328601 for ; Fri, 13 Jan 2017 06:49:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D425B28626; Fri, 13 Jan 2017 06:49:40 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 7BF6728601 for ; Fri, 13 Jan 2017 06:49:40 +0000 (UTC) Received: from localhost ([::1]:39404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRvgB-0000VG-LX for patchwork-qemu-devel@patchwork.kernel.org; Fri, 13 Jan 2017 01:49:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRvMY-0006Y1-92 for qemu-devel@nongnu.org; Fri, 13 Jan 2017 01:29:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRvMX-00025t-Fn for qemu-devel@nongnu.org; Fri, 13 Jan 2017 01:29:22 -0500 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:35597) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRvMT-00024h-Rp; Fri, 13 Jan 2017 01:29:17 -0500 Received: by mail-pf0-x244.google.com with SMTP id f144so6906043pfa.2; Thu, 12 Jan 2017 22:29:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=75iYr6/BA6oXthFoCL3SJgEda66eMB8x0Xi/SDGhI64=; b=PnSgbFc0okcaqvguZmEf03xyUuevOs05RDJoqLoabqye+ElYHOx3BKMZfKiskbyQ90 gJRoy4MT6sKoLQXei4XIKVeWjSfkTxuv8VI66GP+rQOUY0FYK2sJuGPu8dBq64riPHvq W50SGvJqQ3cxoShKS1K6DFbByuIrcdsJ42EcYGCq3m9XUETSHYM5n2O+cRKbLfGcqtGO +ejqdafnQoX9ro/dq5b4fPvVwCZmlnlRMuxGnr3FnbWhMnqFsQvs2hxQ5xPsXn4LKvCc U2NeQEA9Q7FVu6njueoKQep2MIMvm/3UFan03GUoIx/qAXui5gHJPOI4pAa00AHZSBY9 k4ag== 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=75iYr6/BA6oXthFoCL3SJgEda66eMB8x0Xi/SDGhI64=; b=eoDKqlepA3IAZe73hglftXyPI5pbHb41Dzd17jcvUP5B929zIW3ZTJLspg1yfINDrM mgW7ITSgUlk661pvDqVoV9vS9cpvY55VsMx4PVmy48V+QcCV3IUWSXkEUecrWv/196gR swKuDKOqQ2AwMToTw5xDvYHsDy0BisNdjmCBnQs7B26LDI7lwrNGhrssd9gaS8+6qTPK 9ZX4CxLbn+3mpCFeMWSeTWFJNEwPi2l2QcZqI3TYpJRTYKEHS2ZsyZTZT2fv1WFwoHU6 eSVFwnuw/2gTH+YoP0GFZL1D59qOZREPyo1ooDzpu+a7M6v7lWHDC3nKbfmldTTlAQp7 MHxg== X-Gm-Message-State: AIkVDXItZx7TZVl6vYQ7KKgPcdy2VqWNVc2bOI5riP5WCqGkJe6wa0P+FK+rp6hW+3U9mA== X-Received: by 10.84.178.7 with SMTP id y7mr26941795plb.60.1484288957097; Thu, 12 Jan 2017 22:29:17 -0800 (PST) Received: from dyn253.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r2sm26004999pfi.67.2017.01.12.22.29.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 22:29:16 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Fri, 13 Jan 2017 17:28:21 +1100 Message-Id: <1484288903-18807-16-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484288903-18807-1-git-send-email-sjitindarsingh@gmail.com> References: <1484288903-18807-1-git-send-email-sjitindarsingh@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::244 Subject: [Qemu-devel] [RFC PATCH 15/17] tcg/POWER9: NOOP the cp_abort instruction 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: qemu-devel@nongnu.org, agraf@suse.de, Suraj Jitindar Singh , david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The cp_abort instruction is used to remove the state of an in progress copy paste sequence. POWER9 compilers add this in various places, such as context switches which causes illegal instruction signals since we don't yet implement this instruction. Given there is no implementation of the copy paste facility and that we don't claim to support it, we can just noop this instruction. Signed-off-by: Suraj Jitindar Singh --- target/ppc/translate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 5d63254..7527bd2 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -6166,6 +6166,10 @@ GEN_TM_NOOP(tabortwci); GEN_TM_NOOP(tabortdc); GEN_TM_NOOP(tabortdci); GEN_TM_NOOP(tsr); +static inline void gen_cp_abort(DisasContext *ctx) +{ + // Do Nothing +} static void gen_tcheck(DisasContext *ctx) { @@ -6255,6 +6259,7 @@ GEN_HANDLER2(andi_, "andi.", 0x1C, 0xFF, 0xFF, 0x00000000, PPC_INTEGER), GEN_HANDLER2(andis_, "andis.", 0x1D, 0xFF, 0xFF, 0x00000000, PPC_INTEGER), GEN_HANDLER(cntlzw, 0x1F, 0x1A, 0x00, 0x00000000, PPC_INTEGER), GEN_HANDLER_E(cnttzw, 0x1F, 0x1A, 0x10, 0x00000000, PPC_NONE, PPC2_ISA300), +GEN_HANDLER_E(cp_abort, 0x1F, 0x06, 0x1A, 0x03FFF801, PPC_NONE, PPC2_ISA300), GEN_HANDLER(or, 0x1F, 0x1C, 0x0D, 0x00000000, PPC_INTEGER), GEN_HANDLER(xor, 0x1F, 0x1C, 0x09, 0x00000000, PPC_INTEGER), GEN_HANDLER(ori, 0x18, 0xFF, 0xFF, 0x00000000, PPC_INTEGER),