ARM DPM: support updating HW breakpoints

Abstract the DPM breakpoint and watchpoint data structures to
have a shared core for housekeeping.

Abstract the code updating the watchpoint registers so that it
can be used to update breakpoint registers.  Then do so, when
something has set up the breakpoint state used by this code.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
David Brownell
2009-12-11 15:26:10 -08:00
parent 838d41af29
commit 75c706cc04
2 changed files with 75 additions and 52 deletions

View File

@@ -31,24 +31,22 @@
* registers are compatible.
*/
struct dpm_bp {
struct breakpoint *bp;
/* bp->address == breakpoint value register
* control == breakpoint control register
*/
struct dpm_bpwp {
unsigned number;
uint32_t address;
uint32_t control;
/* true if hardware state needs flushing */
bool dirty;
};
struct dpm_bp {
struct breakpoint *bp;
struct dpm_bpwp bpwp;
};
struct dpm_wp {
struct watchpoint *wp;
/* wp->address == watchpoint value register
* control == watchpoint control register
*/
uint32_t control;
/* true if hardware state needs flushing */
bool dirty;
struct dpm_bpwp bpwp;
};
/**