qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 03/13] target/rx: TCG translation


From: Peter Maydell
Subject: Re: [PULL 03/13] target/rx: TCG translation
Date: Fri, 3 Apr 2020 17:41:39 +0100

On Tue, 17 Mar 2020 at 16:52, Philippe Mathieu-Daudé <address@hidden> wrote:
>
> From: Yoshinori Sato <address@hidden>
>
> This part only supported RXv1 instructions.
>
> Instruction manual:
>   
> https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf

Hi; Coverity points out a possible missing 'break' here
(CID 1422222):

> +static void rx_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs)
> +{
> +    DisasContext *ctx = container_of(dcbase, DisasContext, base);
> +
> +    switch (ctx->base.is_jmp) {
> +    case DISAS_NEXT:
> +    case DISAS_TOO_MANY:
> +        gen_goto_tb(ctx, 0, dcbase->pc_next);
> +        break;
> +    case DISAS_JUMP:
> +        if (ctx->base.singlestep_enabled) {
> +            gen_helper_debug(cpu_env);
> +        } else {
> +            tcg_gen_lookup_and_goto_ptr();
> +        }
> +        break;
> +    case DISAS_UPDATE:
> +        tcg_gen_movi_i32(cpu_pc, ctx->base.pc_next);

Should this have a "break" or a "/* fall through */" comment ?

> +    case DISAS_EXIT:
> +        tcg_gen_exit_tb(NULL, 0);
> +        break;
> +    case DISAS_NORETURN:
> +        break;
> +    default:
> +        g_assert_not_reached();
> +    }
> +}

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]