From efb93efd6f2eb7aa555e4e86e95b636003ccf37a Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 7 Dec 2009 12:05:59 -0800 Subject: [PATCH] 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 --- src/target/arm_dpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5