summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/arm_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/arm_dpm.c b/src/target/arm_dpm.c
index ff89c476..1ddf530c 100644
--- a/src/target/arm_dpm.c
+++ b/src/target/arm_dpm.c
@@ -329,7 +329,7 @@ int arm_dpm_write_dirty_registers(struct arm_dpm *dpm, bool bpwp)
retval = dpm->bpwp_disable(dpm, 16 + i);
else
retval = dpm->bpwp_enable(dpm, 16 + i,
- wp->address, dwp->control);
+ wp->address & ~3, dwp->control);
if (retval != ERROR_OK)
LOG_ERROR("%s: can't %s HW watchpoint %d",