Re: [PATCH v1 1/1] hw/intc/ibex_plic: Clear the claim register when read

2020-11-09 Thread Alistair Francis
On Fri, Nov 6, 2020 at 6:20 AM Philippe Mathieu-Daudé wrote: > > On 11/6/20 3:32 AM, Alistair Francis wrote: > > After claiming the interrupt by reading the claim register we want to > > clear the register to make sure the interrupt doesn't appear at the next > > read. > > > > This matches the doc

Re: [PATCH v1 1/1] hw/intc/ibex_plic: Clear the claim register when read

2020-11-06 Thread Philippe Mathieu-Daudé
On 11/6/20 3:32 AM, Alistair Francis wrote: > After claiming the interrupt by reading the claim register we want to > clear the register to make sure the interrupt doesn't appear at the next > read. > > This matches the documentation for the claim register as it clears the > pending bit (which we

[PATCH v1 1/1] hw/intc/ibex_plic: Clear the claim register when read

2020-11-05 Thread Alistair Francis
After claiming the interrupt by reading the claim register we want to clear the register to make sure the interrupt doesn't appear at the next read. This matches the documentation for the claim register as it clears the pending bit (which we already do): https://docs.opentitan.org/hw/ip/rv_plic/d