On Wed, 19 Nov 2014, Ralf Baechle wrote: > > + if (IS_ENABLED(CONFIG_CPU_MICROMIPS)) { > > + insn_p->halfword[0] = insn.word >> 16; > > + insn_p->halfword[1] = insn.word; > > + } else > > + *insn_p = insn; > > I think the IS_ENABLED() should be replaced with cpu_has_mmips? Nope, this leg must only execute if the kernel itself has been built as microMIPS code -- it's patching itself here. Maciej