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
> > 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
>
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:
>>
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.
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:
>>> +
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*/
>> +
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);
> + {
> +
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/