target: MMU-aware init for memory read/write
commit61af6a681671eae69256dcc5b9e853cf9b161387
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 10 Nov 2009 19:58:31 +0000 (10 11:58 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 10 Nov 2009 19:58:31 +0000 (10 11:58 -0800)
tree2a2d5a5cdcf577fee19093aeaec829e394be6114
parent6881c1b6d686c91a8cd604bdcd6098ab62d4dcb9
target: MMU-aware init for memory read/write

Start switching MMU handling over to a more sensible scheme.
Having an mmu() method enables MMU-aware behaviors.  Not having
one kicks in simpler ones, with no distinction between virtual
and physical addresses.

Currently only a handful of targets have methods to read/write
physical memory:  just arm720, arm920, and arm926.  They should
all initialize OK now, but the arm*20 parts don't do the "extra"
stuff arm926 does (which should arguably be target-generic).

Also simplify how target_init() loops over all targets by making
it be a normal "for" loop, instead of scattering its three parts
to the four winds.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
doc/openocd.texi
src/target/target.c