From 209d7c0edc5ee8d2014d5f9891bdb9cd93f4f4ec Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 6 Mar 2008 12:01:52 +0000 Subject: Michael Bruck: - force simulate_reset_on_next_halt when target state is initially detected - print out method of debug entry - fix VCR activation (didn't work before) git-svn-id: svn://svn.berlios.de/openocd/trunk@452 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/arm11.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/target/arm11.c') diff --git a/src/target/arm11.c b/src/target/arm11.c index 45066031..9c3d1f28 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -331,8 +331,14 @@ void arm11_check_init(arm11_common_t * arm11, u32 * dscr) /* add further reset initialization here */ + arm11->simulate_reset_on_next_halt = true; + if (*dscr & ARM11_DSCR_CORE_HALTED) { + /** \todo TODO: this needs further scrutiny because + * arm11_on_enter_debug_state() never gets properly called + */ + arm11->target->state = TARGET_HALTED; arm11->target->debug_reason = arm11_get_DSCR_debug_reason(*dscr); } -- cgit v1.2.3