Message ID | 20200309085806.155823-1-ravi.bangoria@linux.ibm.com (mailing list archive) |
---|---|
Headers | show |
Series | powerpc/watchpoint: Preparation for more than one watchpoint | expand |
Le 09/03/2020 à 09:57, Ravi Bangoria a écrit : > So far, powerpc Book3S code has been written with an assumption of only > one watchpoint. But future power architecture is introducing second > watchpoint register (DAWR). Even though this patchset does not enable > 2nd DAWR, it make the infrastructure ready so that enabling 2nd DAWR > should just be a matter of changing count. Some book3s (e300 family for instance, I think G2 as well) already have a DABR2 in addition to DABR. Will this series allow to use it as well ? Christophe
On Mon, Mar 16, 2020 at 04:05:01PM +0100, Christophe Leroy wrote: > Some book3s (e300 family for instance, I think G2 as well) already have > a DABR2 in addition to DABR. The original "G2" (meaning 603 and 604) do not have DABR2. The newer "G2" (meaning e300) does have it. e500 and e600 do not have it either. Hope I got that right ;-) Segher
Le 16/03/2020 à 19:43, Segher Boessenkool a écrit : > On Mon, Mar 16, 2020 at 04:05:01PM +0100, Christophe Leroy wrote: >> Some book3s (e300 family for instance, I think G2 as well) already have >> a DABR2 in addition to DABR. > > The original "G2" (meaning 603 and 604) do not have DABR2. The newer > "G2" (meaning e300) does have it. e500 and e600 do not have it either. > > Hope I got that right ;-) > > G2 core reference manual says: Features specific to the G2 core not present on the original MPC603e (PID6-603e) processors follow: ... Enhanced debug features — Addition of three breakpoint registers—IABR2, DABR, and DABR2 — Two new breakpoint control registers—DBCR and IBCR e500 has DAC1 and DAC2 instead for breakpoints iaw e500 core reference manual. Christophe
On 3/16/20 8:35 PM, Christophe Leroy wrote: > > > Le 09/03/2020 à 09:57, Ravi Bangoria a écrit : >> So far, powerpc Book3S code has been written with an assumption of only >> one watchpoint. But future power architecture is introducing second >> watchpoint register (DAWR). Even though this patchset does not enable >> 2nd DAWR, it make the infrastructure ready so that enabling 2nd DAWR >> should just be a matter of changing count. > > Some book3s (e300 family for instance, I think G2 as well) already have a DABR2 in addition to DABR. > Will this series allow to use it as well ? I wasn't aware of that. I'll take a look at their specs and check if they can piggyback on this series for 2nd DABR. Thanks, Ravi
On 3/18/20 6:22 PM, Ravi Bangoria wrote: > > > On 3/16/20 8:35 PM, Christophe Leroy wrote: >> >> >> Le 09/03/2020 à 09:57, Ravi Bangoria a écrit : >>> So far, powerpc Book3S code has been written with an assumption of only >>> one watchpoint. But future power architecture is introducing second >>> watchpoint register (DAWR). Even though this patchset does not enable >>> 2nd DAWR, it make the infrastructure ready so that enabling 2nd DAWR >>> should just be a matter of changing count. >> >> Some book3s (e300 family for instance, I think G2 as well) already have a DABR2 in addition to DABR. >> Will this series allow to use it as well ? > > I wasn't aware of that. I'll take a look at their specs and check if they > can piggyback on this series for 2nd DABR. There are some differences between G2/e300 DABRs and Book3S DAWRs. G2/e300 DABRs provides some functionalities like "Match if EA less/greater than DABR", "combined mode" etc. are not present with DAWRs. DBCR on G2/e300 also provides which DABR caused the exception. So this series might not directly allow to use DABR2 but, I guess, it should work as base infrastructure. Ravi