Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-26 Thread Max Filippov
On Tue, Jun 26, 2012 at 1:14 PM, 陳韋任 (Wei-Ren Chen) wrote: >> > 0x is -1, 0x8000 is -MAX. >> > -1/-MAX ?will raise a exception, and I've handle this. -1 / -MAX equals 0, it's not the issue here. >> > -MAX/-1 ?will get a MAX, for max value of a register is -(-MAX)-1, so, >> > it overf

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-26 Thread Wei-Ren Chen
> > 0x is -1, 0x8000 is -MAX. > > -1/-MAX ?will raise a exception, and I've handle this. > > -MAX/-1 ?will get a MAX, for max value of a register is -(-MAX)-1, so, > > it overflowed, I didn't handle this. > > Actually you did this with three brcondi in the else branch. The only thing >

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-25 Thread Max Filippov
On Tue, Jun 26, 2012 at 5:37 AM, Jia Liu wrote: > Hi Max, > > On Mon, Jun 25, 2012 at 5:00 PM, Max Filippov wrote: >> On Mon, Jun 25, 2012 at 6:50 AM, Jia Liu wrote: >>> Hi Max, >>> >>> On Thu, Jun 21, 2012 at 6:24 PM, Max Filippov wrote: On Thu, Jun 21, 2012 at 6:58 AM, Jia Liu wrote: >>

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-25 Thread Jia Liu
Hi Max, On Mon, Jun 25, 2012 at 5:00 PM, Max Filippov wrote: > On Mon, Jun 25, 2012 at 6:50 AM, Jia Liu wrote: >> Hi Max, >> >> On Thu, Jun 21, 2012 at 6:24 PM, Max Filippov wrote: >>> On Thu, Jun 21, 2012 at 6:58 AM, Jia Liu wrote: Add OpenRISC instruction tanslation routines.

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-25 Thread Max Filippov
On Mon, Jun 25, 2012 at 6:50 AM, Jia Liu wrote: > Hi Max, > > On Thu, Jun 21, 2012 at 6:24 PM, Max Filippov wrote: >> On Thu, Jun 21, 2012 at 6:58 AM, Jia Liu wrote: >>> Add OpenRISC instruction tanslation routines. >>> >>> Signed-off-by: Jia Liu >> >> [...] >> >>> +    case 0x0009: >>> +      

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-24 Thread Jia Liu
Hi Max, On Thu, Jun 21, 2012 at 6:24 PM, Max Filippov wrote: > On Thu, Jun 21, 2012 at 6:58 AM, Jia Liu wrote: >> Add OpenRISC instruction tanslation routines. >> >> Signed-off-by: Jia Liu > > [...] > >> +    case 0x0009: >> +        switch (op1) { >> +        case 0x03:   /*l.div*/ >> +      

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-21 Thread Max Filippov
On Thu, Jun 21, 2012 at 6:58 AM, Jia Liu wrote: > Add OpenRISC instruction tanslation routines. > > Signed-off-by: Jia Liu [...] > +    case 0x0009: > +        switch (op1) { > +        case 0x03:   /*l.div*/ > +            LOG_DIS("l.div r%d, r%d, r%d\n", rd, ra, rb); > +            { > +    

[Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-20 Thread Jia Liu
Add OpenRISC instruction tanslation routines. Signed-off-by: Jia Liu --- target-openrisc/translate.c | 1676 +++ 1 file changed, 1676 insertions(+) diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 1d87d76..300236f 100644 --- a/