[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 3/6] target/microblaze: Add the div-zero-exception propert
From: |
Edgar E. Iglesias |
Subject: |
Re: [PATCH v1 3/6] target/microblaze: Add the div-zero-exception property |
Date: |
Mon, 20 Apr 2020 19:20:50 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Sun, Apr 19, 2020 at 09:25:28PM +0200, Luc Michel wrote:
> Hi Edgar,
>
> On 4/17/20 9:10 PM, Edgar E. Iglesias wrote:
> > From: "Edgar E. Iglesias" <address@hidden>
> >
> > Add the div-zero-exception property to control if the core
> > traps divizions by zero.
> >
> > Signed-off-by: Edgar E. Iglesias <address@hidden>
> > ---
...
> > }
> >
>
> I don't know the Microblaze but don't you need to set pvr.regs[2] in
> mb_cpu_realizefn as you do in previous patches?
>
> Something like:
>
> env->pvr.regs[2] |=
> ...
> (cpu->cfg.div_zero_exception ?
> PVR2_DIV_ZERO_EXC_MASK : 0) |
> ...
Yes you're right Luc. I'll post a v2 shortly.
Thanks,
Edgar
- [PATCH v1 0/6] target-microblaze: Misc configurability #2, Edgar E. Iglesias, 2020/04/17
- [PATCH v1 1/6] target/microblaze: Add the opcode-0x0-illegal CPU property, Edgar E. Iglesias, 2020/04/17
- [PATCH v1 2/6] target/microblaze: Add the ill-opcode-exception property, Edgar E. Iglesias, 2020/04/17
- [PATCH v1 3/6] target/microblaze: Add the div-zero-exception property, Edgar E. Iglesias, 2020/04/17
- [PATCH v1 4/6] target/microblaze: Add the unaligned-exceptions property, Edgar E. Iglesias, 2020/04/17
- [PATCH v1 5/6] target/microblaze: Add the pvr-user1 property, Edgar E. Iglesias, 2020/04/17
- [PATCH v1 6/6] target/microblaze: Add the pvr-user2 property, Edgar E. Iglesias, 2020/04/17
- Re: [PATCH v1 0/6] target-microblaze: Misc configurability #2, no-reply, 2020/04/17