Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
On Fri, May 28, 2010 at 02:23:30PM +1000, Michael Neuling wrote: > > > In message <20100528041645.gb25...@in.ibm.com> you wrote: > > On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote: > > > > > > > > > In message <20100527141203.ga20...@in.ibm.com> you wrote: > > > > Hi Paul, > >

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Michael Neuling
In message <20100528041645.gb25...@in.ibm.com> you wrote: > On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote: > > > > > > In message <20100527141203.ga20...@in.ibm.com> you wrote: > > > Hi Paul, > > > > > > While we are at it, can we also add nop to the list of emulated > > > in

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote: > > > In message <20100527141203.ga20...@in.ibm.com> you wrote: > > Hi Paul, > > > > While we are at it, can we also add nop to the list of emulated > > instructions? > > > > Ananth > > --- > > From: Ananth N Mavinakayanahalli >

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
On Thu, May 27, 2010 at 03:22:45PM -0500, Kumar Gala wrote: > > On May 27, 2010, at 9:12 AM, Ananth N Mavinakayanahalli wrote: > > > Hi Paul, > > > > While we are at it, can we also add nop to the list of emulated > > instructions? > > Dare I ask why we need to emulate nop? We are close to get

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Michael Neuling
In message <20100527141203.ga20...@in.ibm.com> you wrote: > Hi Paul, > > While we are at it, can we also add nop to the list of emulated > instructions? > > Ananth > --- > From: Ananth N Mavinakayanahalli > > Emulate ori 0,0,0 (nop). > > The long winded way is to do: > > case 24: >

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Paul Mackerras
On Thu, May 27, 2010 at 07:42:03PM +0530, Ananth N Mavinakayanahalli wrote: > While we are at it, can we also add nop to the list of emulated > instructions? I have a patch in development that emulates most of the arithmetic, logical and shift/rotate instructions, including ori. While you're her

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Kumar Gala
On May 27, 2010, at 9:12 AM, Ananth N Mavinakayanahalli wrote: > Hi Paul, > > While we are at it, can we also add nop to the list of emulated > instructions? Dare I ask why we need to emulate nop? - k > > Ananth > --- > From: Ananth N Mavinakayanahalli > > Emulate ori 0,0,0 (nop). > > The

[RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
Hi Paul, While we are at it, can we also add nop to the list of emulated instructions? Ananth --- From: Ananth N Mavinakayanahalli Emulate ori 0,0,0 (nop). The long winded way is to do: case 24: rd = (instr >> 21) & 0x1f; if (rd != 0)