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: Richard Henderson
Subject: Re: [PULL 03/13] target/rx: TCG translation
Date: Fri, 3 Apr 2020 09:47:38 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 4/3/20 9:41 AM, Peter Maydell wrote:
> 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;

This one should be a fall through.


r~



reply via email to

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