From: peer.adelt@c-lab.de
To: qemu-devel@nongnu.org
Cc: kbastian@mail.uni-paderborn.de, Peer Adelt <peer.adelt@c-lab.de>
Subject: [Qemu-devel] [PATCH 4/4] target-tricore: Added new JNE instruction variant
Date: Mon, 30 May 2016 00:59:28 +0200 [thread overview]
Message-ID: <1464562768-8954-5-git-send-email-peer.adelt@c-lab.de> (raw)
In-Reply-To: <1464562768-8954-1-git-send-email-peer.adelt@c-lab.de>
From: Peer Adelt <peer.adelt@c-lab.de>
If D[15] is != sign_ext(const4) then PC will be set to (PC +
zero_ext(disp4 + 16)).
Signed-off-by: Peer Adelt <peer.adelt@c-lab.de>
---
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)
next prev parent reply other threads:[~2016-05-29 23:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-29 22:59 [Qemu-devel] [PATCH 0/4] Added 5 instructions to the tricore target peer.adelt
2016-05-29 22:59 ` [Qemu-devel] [PATCH 1/4] target-tricore: Added FTOUZ instruction peer.adelt
2016-05-30 7:09 ` Bastian Koppelmann
2016-06-04 16:46 ` Richard Henderson
2016-05-29 22:59 ` [Qemu-devel] [PATCH 2/4] target-tricore: Added MADD.F and MSUB.F instructions peer.adelt
2016-05-31 11:13 ` Bastian Koppelmann
2016-06-04 16:55 ` Richard Henderson
2016-05-29 22:59 ` [Qemu-devel] [PATCH 3/4] target-tricore: Added new MOV instruction variant peer.adelt
2016-05-30 7:13 ` Bastian Koppelmann
2016-06-04 17:04 ` Richard Henderson
2016-05-29 22:59 ` peer.adelt [this message]
2016-05-30 8:17 ` [Qemu-devel] [PATCH 4/4] target-tricore: Added new JNE " Bastian Koppelmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464562768-8954-5-git-send-email-peer.adelt@c-lab.de \
--to=peer.adelt@c-lab.de \
--cc=kbastian@mail.uni-paderborn.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).