summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-25 16:18:22 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-25 16:18:22 -0800
commitcc53ad81d3f7598eb06c216218734342d2d8e7e9 (patch)
tree67ce63c2632214dab7e96442d2868adb057a4807 /src/target
parent21378f58b604453262ac6f3cbf3d6b94b50251cf (diff)
downloadopenocd_libswd-cc53ad81d3f7598eb06c216218734342d2d8e7e9.tar.gz
openocd_libswd-cc53ad81d3f7598eb06c216218734342d2d8e7e9.tar.bz2
openocd_libswd-cc53ad81d3f7598eb06c216218734342d2d8e7e9.tar.xz
openocd_libswd-cc53ad81d3f7598eb06c216218734342d2d8e7e9.zip
ARM: minor armv4/armv5 cleanup
Lines of 300+ characters are still bad; debug tweaks. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/armv4_5.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index 7e5bb0a1..b5e33ff5 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -390,6 +390,10 @@ void arm_set_cpsr(struct arm *arm, uint32_t cpsr)
state = ARMV4_5_STATE_ARM;
}
arm->core_state = state;
+
+ LOG_DEBUG("set CPSR %#8.8x: %s mode, %s state", (unsigned) cpsr,
+ arm_mode_name(mode),
+ armv4_5_state_strings[arm->core_state]);
}
/**
@@ -875,7 +879,13 @@ static int armv4_5_run_algorithm_completion(struct target *target, uint32_t exit
return ERROR_OK;
}
-int armv4_5_run_algorithm_inner(struct target *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_params, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info, int (*run_it)(struct target *target, uint32_t exit_point, int timeout_ms, void *arch_info))
+int armv4_5_run_algorithm_inner(struct target *target,
+ int num_mem_params, struct mem_param *mem_params,
+ int num_reg_params, struct reg_param *reg_params,
+ uint32_t entry_point, uint32_t exit_point,
+ int timeout_ms, void *arch_info,
+ int (*run_it)(struct target *target, uint32_t exit_point,
+ int timeout_ms, void *arch_info))
{
struct arm *armv4_5 = target_to_armv4_5(target);
struct armv4_5_algorithm *armv4_5_algorithm_info = arch_info;
@@ -885,6 +895,7 @@ int armv4_5_run_algorithm_inner(struct target *target, int num_mem_params, struc
int exit_breakpoint_size = 0;
int i;
int retval = ERROR_OK;
+
LOG_DEBUG("Running algorithm");
if (armv4_5_algorithm_info->common_magic != ARMV4_5_COMMON_MAGIC)