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:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user