Patchwork tcg-hppa: Fix typo in brcond2

login
register
mail settings
Submitter Richard Henderson
Date Dec. 28, 2012, 10:19 p.m.
Message ID <1356733175-4534-1-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/208603/
State New
Headers show

Comments

Richard Henderson - Dec. 28, 2012, 10:19 p.m.
Reported-by: Stuart Brady <sdb@zubnet.me.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/hppa/tcg-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Blue Swirl - Dec. 29, 2012, 3:51 p.m.
Thanks, applied.

On Fri, Dec 28, 2012 at 10:19 PM, Richard Henderson <rth@twiddle.net> wrote:
> Reported-by: Stuart Brady <sdb@zubnet.me.uk>
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  tcg/hppa/tcg-target.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-target.c
> index 5b27cf6..656e736 100644
> --- a/tcg/hppa/tcg-target.c
> +++ b/tcg/hppa/tcg-target.c
> @@ -824,7 +824,7 @@ static void tcg_out_brcond2(TCGContext *s, int cond, TCGArg al, TCGArg ah,
>          tcg_out_brcond(s, TCG_COND_EQ, ah, bh, bhconst, label_index);
>          break;
>      case TCG_COND_NE:
> -        tcg_out_brcond(s, TCG_COND_NE, al, bl, bhconst, label_index);
> +        tcg_out_brcond(s, TCG_COND_NE, al, bl, blconst, label_index);
>          tcg_out_brcond(s, TCG_COND_NE, ah, bh, bhconst, label_index);
>          break;
>      default:
> --
> 1.7.11.7
>

Patch

diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-target.c
index 5b27cf6..656e736 100644
--- a/tcg/hppa/tcg-target.c
+++ b/tcg/hppa/tcg-target.c
@@ -824,7 +824,7 @@  static void tcg_out_brcond2(TCGContext *s, int cond, TCGArg al, TCGArg ah,
         tcg_out_brcond(s, TCG_COND_EQ, ah, bh, bhconst, label_index);
         break;
     case TCG_COND_NE:
-        tcg_out_brcond(s, TCG_COND_NE, al, bl, bhconst, label_index);
+        tcg_out_brcond(s, TCG_COND_NE, al, bl, blconst, label_index);
         tcg_out_brcond(s, TCG_COND_NE, ah, bh, bhconst, label_index);
         break;
     default: