summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 12:05:59 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:57:43 -0800
commitefb93efd6f2eb7aa555e4e86e95b636003ccf37a (patch)
treeed7096a8b0be9630434d41d93a8b04ff904c8e12 /src
parentecd709fa55333413f070939beadae98acac0e4c2 (diff)
downloadopenocd+libswd-efb93efd6f2eb7aa555e4e86e95b636003ccf37a.tar.gz
openocd+libswd-efb93efd6f2eb7aa555e4e86e95b636003ccf37a.tar.bz2
openocd+libswd-efb93efd6f2eb7aa555e4e86e95b636003ccf37a.tar.xz
openocd+libswd-efb93efd6f2eb7aa555e4e86e95b636003ccf37a.zip
ARM DPM: don't write low bits of watchpoint value
The low two bits are defined as should-be-zero-or-presereved. We'll take the zero option, it's easier to enforce. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-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",