qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Yi Wang <wang.yi59@zte.com.cn>, qemu-devel@nongnu.org
Cc: xue.zhihong@zte.com.cn, QEMU Trivial <qemu-trivial@nongnu.org>,
	wang.liang82@zte.com.cn, Liao Pingfang <liao.pingfang@zte.com.cn>,
	Yoshinori Sato <ysato@users.sourceforge.jp>
Subject: Re: [PATCH 11/12] target/sh4: Remove superfluous breaks
Date: Mon, 13 Jul 2020 11:38:45 +0200	[thread overview]
Message-ID: <038e7f75-8c34-0a26-1451-75120d703c3d@redhat.com> (raw)
In-Reply-To: <1594631142-36745-1-git-send-email-wang.yi59@zte.com.cn>

On 13/07/2020 11.05, Yi Wang wrote:
> From: Liao Pingfang <liao.pingfang@zte.com.cn>
> 
> Remove superfluous breaks, as there is a "return" before them.
> 
> Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
> Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  target/sh4/translate.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/target/sh4/translate.c b/target/sh4/translate.c
> index 6192d83..60c863d 100644
> --- a/target/sh4/translate.c
> +++ b/target/sh4/translate.c
> @@ -1542,7 +1542,6 @@ static void _decode_opc(DisasContext * ctx)
>          tcg_gen_qemu_ld_i32(REG(0), REG(B11_8), ctx->memidx,
>                              MO_TEUL | MO_UNALN);
>          return;
> -        break;
>      case 0x40e9:                /* movua.l @Rm+,R0 */
>          CHECK_SH4A
>          /* Load non-boundary-aligned data */
> @@ -1550,7 +1549,6 @@ static void _decode_opc(DisasContext * ctx)
>                              MO_TEUL | MO_UNALN);
>          tcg_gen_addi_i32(REG(B11_8), REG(B11_8), 4);
>          return;
> -        break;
>      case 0x0029:		/* movt Rn */
>          tcg_gen_mov_i32(REG(B11_8), cpu_sr_t);
>  	return;
> @@ -1638,7 +1636,6 @@ static void _decode_opc(DisasContext * ctx)
>          CHECK_SH4A
>          tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC);
>          return;
> -        break;
>      case 0x4024:		/* rotcl Rn */
>  	{
>  	    TCGv tmp = tcg_temp_new();
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>



  reply	other threads:[~2020-07-13  9:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-13  9:05 [PATCH 11/12] target/sh4: Remove superfluous breaks Yi Wang
2020-07-13  9:38 ` Thomas Huth [this message]
2020-09-01  6:38   ` Laurent Vivier
2020-07-13 10:36 ` Philippe Mathieu-Daudé

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=038e7f75-8c34-0a26-1451-75120d703c3d@redhat.com \
    --to=thuth@redhat.com \
    --cc=liao.pingfang@zte.com.cn \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=wang.liang82@zte.com.cn \
    --cc=wang.yi59@zte.com.cn \
    --cc=xue.zhihong@zte.com.cn \
    --cc=ysato@users.sourceforge.jp \
    /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).