On 10/19/18 8:28 AM, Bastian Koppelmann wrote: > > On 10/13/18 8:53 PM, Richard Henderson wrote: >> On 10/12/18 10:30 AM, Bastian Koppelmann wrote: >>> +static bool trans_c_addi(DisasContext *ctx, arg_c_addi *a, uint16_t insn) >>> +{ >>> + if (a->imm == 0) { >>> + return true; >>> + } >> return false, I think. > > > Those are HINTS, which means the instruction in valid, but does not affect > state, so true is correct. If I do return false, then Linux does not boot > anymore :)
Ah, this information is not present in the main body of the text, only in table 12.5. It might be good to add comments to the code here. Thanks. r~