Re: [PATCH] MIPS: R6: emulation of PC-relative instructions

2015-08-11 Thread Leonid Yegoshin
On 08/11/2015 07:41 AM, Markos Chandras wrote: Hi, On Wed, Aug 05, 2015 at 04:53:43PM -0700, Leonid Yegoshin wrote: if (nir) { err = mipsr6_emul(regs, nir); if (err > 0) { +

Re: [PATCH] MIPS: R6: emulation of PC-relative instructions

2015-08-11 Thread Markos Chandras
Hi, On Wed, Aug 05, 2015 at 04:53:43PM -0700, Leonid Yegoshin wrote: > MIPS R6 has 6 new PC-relative instructions: LWUPC, LWPC, LDPC, ADDIUPC, ALUIPC > and AUIPC. These instructions can be placed in BD-slot of BC1* branch > instruction and FPU may be not available, which requires emulation of thes

[PATCH] MIPS: R6: emulation of PC-relative instructions

2015-08-05 Thread Leonid Yegoshin
MIPS R6 has 6 new PC-relative instructions: LWUPC, LWPC, LDPC, ADDIUPC, ALUIPC and AUIPC. These instructions can be placed in BD-slot of BC1* branch instruction and FPU may be not available, which requires emulation of these instructions. However, the traditional way to emulate that is via filling