From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79qY-00033O-1d for qemu-devel@nongnu.org; Sun, 29 May 2016 19:10:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b79qS-00065W-VP for qemu-devel@nongnu.org; Sun, 29 May 2016 19:10:12 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:42017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79qS-00065G-OX for qemu-devel@nongnu.org; Sun, 29 May 2016 19:10:08 -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 hoth) id 1b79qS-0004eo-Q4 for qemu-devel@nongnu.org; Mon, 30 May 2016 01:10:08 +0200 Received: from mail.uni-paderborn.de by tweenies with queue id 1136310-4 for qemu-devel@nongnu.org; Sun, 29 May 2016 22:59:38 GMT From: peer.adelt@c-lab.de Date: Mon, 30 May 2016 00:59:28 +0200 Message-Id: <1464562768-8954-5-git-send-email-peer.adelt@c-lab.de> 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> Subject: [Qemu-devel] [PATCH 4/4] target-tricore: Added new JNE instruction variant List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kbastian@mail.uni-paderborn.de, Peer Adelt From: Peer Adelt If D[15] is != sign_ext(const4) then PC will be set to (PC + zero_ext(disp4 + 16)). Signed-off-by: Peer Adelt --- target-tricore/translate.c | 1 + target-tricore/tricore-opcodes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c index 2145f64..9ad9fcc 100644 --- a/target-tricore/translate.c +++ b/target-tricore/translate.c @@ -3363,6 +3363,7 @@ static void gen_compute_branch(DisasContext *ctx, uint32_t opc, int r1, gen_branch_condi(ctx, TCG_COND_EQ, cpu_gpr_d[15], constant, offset); break; case OPC1_16_SBC_JNE: + case OPC1_16_SBC_JNE16: gen_branch_condi(ctx, TCG_COND_NE, cpu_gpr_d[15], constant, offset); break; /* SBRN-format jumps */ diff --git a/target-tricore/tricore-opcodes.h b/target-tricore/tricore-opcodes.h index 2f25613..7925354 100644 --- a/target-tricore/tricore-opcodes.h +++ b/target-tricore/tricore-opcodes.h @@ -318,6 +318,7 @@ enum { OPC1_16_SBR_JLEZ = 0x8e, OPC1_16_SBR_JLTZ = 0x0e, OPC1_16_SBC_JNE = 0x5e, + OPC1_16_SBC_JNE16 = 0xde, OPC1_16_SBR_JNE = 0x7e, OPC1_16_SB_JNZ = 0xee, OPC1_16_SBR_JNZ = 0xf6, -- 2.7.4 (Apple Git-66)