ARM: core DPM support for watchpoints
commit66ca84b58114ad73b5843f62f9f5fbead1126fca
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 2 Dec 2009 05:47:45 +0000 (1 21:47 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 2 Dec 2009 05:47:45 +0000 (1 21:47 -0800)
treec154e6084a6ccc742d1ec8be002ffa187a8c61b5
parent1c7d3d200c6f20d4bb689176373368cd497d797f
ARM: core DPM support for watchpoints

This is a NOP unless the underlying core exposes two new methods, and
neither of the two cores using this (ARM11xx, Cortex-A8) do so yet.

This patch only updates those cores so they pass a flag saying whether
or not to update breakpoint and watchpoint status before resuming; and
removing some now-needless anti-segfault code from ARM11.  Cortex-A8
didn't have that code ... yes, it segfaulted when setting watchpoints.

NOTE:  this uses a slightly different strategy for setting/clearing
breakpoints than the ARM7/ARM9/etc code uses.  It leaves them alone
unless it's *got* to change something, to speed halt/resume cycles
(including single stepping).

ALSO NOTE:  this under-delivers for Cortex-A8, where regions with size
up to 2 GBytes can be watched ... it handles watchpoints which ARM11 can
also handle (size 1/2/4 bytes).  Should get fixed later.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm11.c
src/target/arm_dpm.c
src/target/arm_dpm.h
src/target/cortex_a8.c