From: David Brownell Date: Mon, 7 Dec 2009 20:05:59 +0000 (-0800) Subject: ARM DPM: don't write low bits of watchpoint value X-Git-Tag: v0.4.0-rc1~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=efb93efd6f2eb7aa555e4e86e95b636003ccf37a;p=openocd 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 --- 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",