Browse Source

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>
tags/v0.4.0-rc1
David Brownell 14 years ago
parent
commit
efb93efd6f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/target/arm_dpm.c

+ 1
- 1
src/target/arm_dpm.c View File

@@ -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",


Loading…
Cancel
Save