From patchwork Sun May 29 22:59:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: peer.adelt@c-lab.de X-Patchwork-Id: 9140015 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 4493760759 for ; Sun, 29 May 2016 23:00:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3757D21BED for ; Sun, 29 May 2016 23:00:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C41C27CF9; Sun, 29 May 2016 23:00:23 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 9643D21BED for ; Sun, 29 May 2016 23:00:22 +0000 (UTC) Received: from localhost ([::1]:57160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79gz-0005lK-PL for patchwork-qemu-devel@patchwork.kernel.org; Sun, 29 May 2016 19:00:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79gU-0005hY-0h for qemu-devel@nongnu.org; Sun, 29 May 2016 18:59:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b79gK-0004Tf-KM for qemu-devel@nongnu.org; Sun, 29 May 2016 18:59:49 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:44277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79gK-0004TT-Du for qemu-devel@nongnu.org; Sun, 29 May 2016 18:59:40 -0400 Received: from tweenies.uni-paderborn.de ([131.234.189.21] helo=localhost.localdomain) by mail.uni-paderborn.de with esmtp (Exim 4.84_2 spheron) id 1b79gH-0006E0-Ii for qemu-devel@nongnu.org; Mon, 30 May 2016 00:59:37 +0200 Received: from mail.uni-paderborn.de by tweenies with queue id 1136309-4 for qemu-devel@nongnu.org; Sun, 29 May 2016 22:59:37 GMT Received: from adelt@mail.uni-paderborn.de (aftr-37-201-214-239.unity-media.net [37.201.214.239]) by mail.uni-paderborn.de with SMTP id 1b79gH-0001R8-Ne; Sun, 29 May 2016 22:59:37 GMT (envelope-from adelt@mail.uni-paderborn.de) X-Envelope-From: Received: from aftr-37-201-214-239.unity-media.net ([37.201.214.239] helo=arbeitstier.patch.net) by mail.uni-paderborn.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.84_2 nylar) id 1b79gH-0001R8-Ne; Mon, 30 May 2016 00:59:37 +0200 From: peer.adelt@c-lab.de To: qemu-devel@nongnu.org Date: Mon, 30 May 2016 00:59:27 +0200 Message-Id: <1464562768-8954-4-git-send-email-peer.adelt@c-lab.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464562768-8954-1-git-send-email-peer.adelt@c-lab.de> References: <1464562768-8954-1-git-send-email-peer.adelt@c-lab.de> X-PMX-Version: 6.3.0.2556906, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.5.29.225116 X-IMT-Spam-Score: 0.0 () X-IMT-Authenticated-Sender: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 131.234.142.9 Subject: [Qemu-devel] [PATCH 3/4] target-tricore: Added new MOV instruction variant 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: kbastian@mail.uni-paderborn.de, Peer Adelt Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Peer Adelt Puts the content of data register D[a] into E[c][63:32] and the content of data register D[b] into E[c][31:0]. Signed-off-by: Peer Adelt --- target-tricore/translate.c | 4 ++++ target-tricore/tricore-opcodes.h | 1 + 2 files changed, 5 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c index e66b433..2145f64 100644 --- a/target-tricore/translate.c +++ b/target-tricore/translate.c @@ -6224,6 +6224,10 @@ static void decode_rr_accumulator(CPUTriCoreState *env, DisasContext *ctx) case OPC2_32_RR_MOV: tcg_gen_mov_tl(cpu_gpr_d[r3], cpu_gpr_d[r2]); break; + case OPC2_32_RR_MOV_EXT: + tcg_gen_mov_tl(cpu_gpr_d[r3], cpu_gpr_d[r1]); + tcg_gen_mov_tl(cpu_gpr_d[(r3 + 1)], cpu_gpr_d[r2]); + break; case OPC2_32_RR_NE: tcg_gen_setcond_tl(TCG_COND_NE, cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); diff --git a/target-tricore/tricore-opcodes.h b/target-tricore/tricore-opcodes.h index df666b0..2f25613 100644 --- a/target-tricore/tricore-opcodes.h +++ b/target-tricore/tricore-opcodes.h @@ -1062,6 +1062,7 @@ enum { OPC2_32_RR_MIN_H = 0x78, OPC2_32_RR_MIN_HU = 0x79, OPC2_32_RR_MOV = 0x1f, + OPC2_32_RR_MOV_EXT = 0x81, OPC2_32_RR_NE = 0x11, OPC2_32_RR_OR_EQ = 0x27, OPC2_32_RR_OR_GE = 0x2b,