From 04dc98916d9acb57e0f5595534151a24ba4dc684 Mon Sep 17 00:00:00 2001 From: drath Date: Mon, 16 Apr 2007 14:58:16 +0000 Subject: - explicitly disable monitor mode on ARM7/9 targets - added "prepare_reset_halt()" to target_type_t, which allows reset_halt to be prepared before a reset is asserted, possibly preventing communication with the target - arm7/9 devices now use a breakpoint at 0x0 or reset vector catching for debug out of reset git-svn-id: svn://svn.berlios.de/openocd/trunk@141 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/xscale.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/target/xscale.c') diff --git a/src/target/xscale.c b/src/target/xscale.c index d6c9f215..9bb3ca75 100644 --- a/src/target/xscale.c +++ b/src/target/xscale.c @@ -58,6 +58,7 @@ int xscale_restore_context(target_t *target); int xscale_assert_reset(target_t *target); int xscale_deassert_reset(target_t *target); int xscale_soft_reset_halt(struct target_s *target); +int xscale_prepare_reset_halt(struct target_s *target); int xscale_set_reg_u32(reg_t *reg, u32 value); @@ -91,6 +92,7 @@ target_type_t xscale_target = .assert_reset = xscale_assert_reset, .deassert_reset = xscale_deassert_reset, .soft_reset_halt = xscale_soft_reset_halt, + .prepare_reset_halt = xscale_prepare_reset_halt, .get_gdb_reg_list = armv4_5_get_gdb_reg_list, @@ -1679,6 +1681,12 @@ int xscale_soft_reset_halt(struct target_s *target) return ERROR_OK; } +int xscale_prepare_reset_halt(struct target_s *target) +{ + /* nothing to be done for reset_halt on XScale targets */ + return ERROR_OK; +} + int xscale_read_core_reg(struct target_s *target, int num, enum armv4_5_mode mode) { -- cgit v1.2.3