> From: Stefan Markovic <stefan.marko...@rt-rk.com> > Sent: Thursday, August 2, 2018 4:16 PM > Subject: [PATCH v6 41/77] target/mips: Add emulation of DSP ASE for nanoMIPS > - part 4 > > From: Stefan Markovic <smarko...@wavecomp.com> > > Add emulation of DSP ASE instructions for nanoMIPS - part 4. > > Signed-off-by: Aleksandar Markovic <amarko...@wavecomp.com> > Signed-off-by: Stefan Markovic <smarko...@wavecomp.com> > --- > target/mips/translate.c | 365 > ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 365 insertions(+) >
> + case NM_BALIGN: > + if (rt != 0) { > + gen_load_gpr(t0, rs); > + rd &= 3; > + if (rd != 0 && rd != 2) { > + tcg_gen_shli_tl(cpu_gpr[ret], cpu_gpr[ret], 8 * rd); > + tcg_gen_ext32u_tl(t0, t0); > + tcg_gen_shri_tl(t0, t0, 8 * (4 - rd)); > + tcg_gen_or_tl(cpu_gpr[ret], cpu_gpr[ret], t0); > + } > + tcg_gen_ext32s_tl(cpu_gpr[ret], cpu_gpr[ret]); > + } > + break; Missing availability control, here and in many other places in this patch. Aleksandar M.