ARM7_9: Fix segfaults
commit3ed254c18aa7fc24cbc692433729ec3819fc5537
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 30 Dec 2009 23:13:16 +0000 (31 07:13 +0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 31 Dec 2009 00:58:27 +0000 (30 16:58 -0800)
tree9da912a4f5042d5eb7f97d9100ca0dfa3fc3c24d
parent7c5acf8660ddfce4746152e03749b699532f513f
ARM7_9: Fix segfaults

Handlers for commands
 - arm7_9 semihosting <enable | disable>
 - $_TARGETNAME arp_reset assert 1
didn't check if target has already been examined, and could
segfault when using the NULL pointer "arm7_9->eice_cache".

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm7_9_common.c
src/target/target.c