Re: [PATCH v2 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-01 Thread Ravi Bangoria
On 4/1/20 2:50 PM, Christophe Leroy wrote: Le 01/04/2020 à 11:13, Ravi Bangoria a écrit : On 4/1/20 12:20 PM, Christophe Leroy wrote: Le 01/04/2020 à 08:13, Ravi Bangoria a écrit : Currently we assume that we have only one watchpoint supported by hw. Get rid of that assumption and

Re: [PATCH v2 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-01 Thread Christophe Leroy
Le 01/04/2020 à 11:13, Ravi Bangoria a écrit : On 4/1/20 12:20 PM, Christophe Leroy wrote: Le 01/04/2020 à 08:13, Ravi Bangoria a écrit : Currently we assume that we have only one watchpoint supported by hw. Get rid of that assumption and use dynamic loop instead. This should make

Re: [PATCH v2 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-01 Thread Ravi Bangoria
On 4/1/20 12:20 PM, Christophe Leroy wrote: Le 01/04/2020 à 08:13, Ravi Bangoria a écrit : Currently we assume that we have only one watchpoint supported by hw. Get rid of that assumption and use dynamic loop instead. This should make supporting more watchpoints very easy. With more than

Re: [PATCH v2 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-01 Thread Christophe Leroy
Le 01/04/2020 à 08:13, Ravi Bangoria a écrit : Currently we assume that we have only one watchpoint supported by hw. Get rid of that assumption and use dynamic loop instead. This should make supporting more watchpoints very easy. With more than one watchpoint, exception handler need to know

[PATCH v2 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-01 Thread Ravi Bangoria
Currently we assume that we have only one watchpoint supported by hw. Get rid of that assumption and use dynamic loop instead. This should make supporting more watchpoints very easy. With more than one watchpoint, exception handler need to know which DAWR caused the exception, and hw currently