All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yongbok Kim <yongbok.kim@imgtec.com>
To: Leon Alrae <leon.alrae@imgtec.com>, qemu-devel@nongnu.org
Cc: aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH] target-mips: fix for missing delay slot in BC1EQZ and BC1NEZ
Date: Thu, 6 Nov 2014 10:42:45 +0000	[thread overview]
Message-ID: <545B50A5.3040508@imgtec.com> (raw)
In-Reply-To: <1415269778-2162-1-git-send-email-leon.alrae@imgtec.com>

On 06/11/2014 10:29, Leon Alrae wrote:
> New R6 COP1 conditional branches currently don't have delay slot. Fixing this
> by setting MIPS_HFLAG_BDS32 flag which is required for branches having 4-byte
> delay slot.
>
> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
> ---
>   target-mips/translate.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/target-mips/translate.c b/target-mips/translate.c
> index 2117ce8..e83c50a 100644
> --- a/target-mips/translate.c
> +++ b/target-mips/translate.c
> @@ -8104,6 +8104,7 @@ static void gen_compute_branch1_r6(DisasContext *ctx, uint32_t op,
>       MIPS_DEBUG("%s: cond %02x target " TARGET_FMT_lx, opn,
>                  ctx->hflags, btarget);
>       ctx->btarget = btarget;
> +    ctx->hflags |= MIPS_HFLAG_BDS32;
>   
>   out:
>       tcg_temp_free_i64(t0);

Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>

Regards,
Yongbok Kim

      reply	other threads:[~2014-11-06 10:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 10:29 [Qemu-devel] [PATCH] target-mips: fix for missing delay slot in BC1EQZ and BC1NEZ Leon Alrae
2014-11-06 10:42 ` Yongbok Kim [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=545B50A5.3040508@imgtec.com \
    --to=yongbok.kim@imgtec.com \
    --cc=aurelien@aurel32.net \
    --cc=leon.alrae@imgtec.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.