From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
To: peer.adelt@c-lab.de, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 4/4] target-tricore: Added new JNE instruction variant
Date: Tue, 31 May 2016 10:44:20 +0200 [thread overview]
Message-ID: <95000d30-76a9-bd8c-c1cb-7a95df05dbd7@mail.uni-paderborn.de> (raw)
In-Reply-To: <1464673745-14628-1-git-send-email-peer.adelt@c-lab.de>
On 05/31/2016 07:49 AM, peer.adelt@c-lab.de wrote:
> 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 | 11 +++++++++++
> target-tricore/tricore-opcodes.h | 1 +
> 2 files changed, 12 insertions(+)
>
> diff --git a/target-tricore/translate.c b/target-tricore/translate.c
> index 960ee33..21732f8 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 */
> @@ -4097,6 +4098,16 @@ static void decode_16Bit_opc(CPUTriCoreState *env, DisasContext *ctx)
> const16 = MASK_OP_SBC_CONST4_SEXT(ctx->opcode);
> gen_compute_branch(ctx, op1, 0, 0, const16, address);
> break;
> + case OPC1_16_SBC_JEQ16:
This doesn't compile since OPC1_16_SBC_JEQ16 is not defined. Remove this
or better implement JEQ16 as well since both insn are similar.
Also, if you resend a patches always resend the whole series and add the
reviewed-by tags to the commit messages of already reviewed patches.
Cheers,
Bastian
prev parent reply other threads:[~2016-05-31 8:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 5:49 [Qemu-devel] [PATCH v2 4/4] target-tricore: Added new JNE instruction variant peer.adelt
2016-05-31 8:44 ` Bastian Koppelmann [this message]
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=95000d30-76a9-bd8c-c1cb-7a95df05dbd7@mail.uni-paderborn.de \
--to=kbastian@mail.uni-paderborn.de \
--cc=peer.adelt@c-lab.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).