aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv7m.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-10-10 21:16:42 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-10-10 20:51:03 +0000
commit1c975fe30b8fb380907133462cc38a0b2e9de565 (patch)
tree435e0ccd10febade04c74ac609880b633e172ec5 /src/target/armv7m.c
parent43fc460559bb779a8867cc1eb9728e0e68fb7609 (diff)
downloadriscv-openocd-1c975fe30b8fb380907133462cc38a0b2e9de565.zip
riscv-openocd-1c975fe30b8fb380907133462cc38a0b2e9de565.tar.gz
riscv-openocd-1c975fe30b8fb380907133462cc38a0b2e9de565.tar.bz2
cortex_m: target implementation renames cortex_m3 to cortex_m
We changed the actual target name quite a while ago. This changes the actual target function names/defines to also match this change. Change-Id: I4f22fb107636db2279865b45350c9c776e608a75 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1626 Tested-by: jenkins
Diffstat (limited to 'src/target/armv7m.c')
-rw-r--r--src/target/armv7m.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c
index 92ebb95..7716139 100644
--- a/src/target/armv7m.c
+++ b/src/target/armv7m.c
@@ -602,7 +602,7 @@ int armv7m_checksum_memory(struct target *target,
/* see contrib/loaders/checksum/armv7m_crc.s for src */
- static const uint8_t cortex_m3_crc_code[] = {
+ static const uint8_t cortex_m_crc_code[] = {
/* main: */
0x02, 0x46, /* mov r2, r0 */
0x00, 0x20, /* movs r0, #0 */
@@ -636,12 +636,12 @@ int armv7m_checksum_memory(struct target *target,
0xB7, 0x1D, 0xC1, 0x04 /* CRC32XOR: .word 0x04c11db7 */
};
- retval = target_alloc_working_area(target, sizeof(cortex_m3_crc_code), &crc_algorithm);
+ retval = target_alloc_working_area(target, sizeof(cortex_m_crc_code), &crc_algorithm);
if (retval != ERROR_OK)
return retval;
retval = target_write_buffer(target, crc_algorithm->address,
- sizeof(cortex_m3_crc_code), (uint8_t *)cortex_m3_crc_code);
+ sizeof(cortex_m_crc_code), (uint8_t *)cortex_m_crc_code);
if (retval != ERROR_OK)
goto cleanup;
@@ -657,7 +657,7 @@ int armv7m_checksum_memory(struct target *target,
int timeout = 20000 * (1 + (count / (1024 * 1024)));
retval = target_run_algorithm(target, 0, NULL, 2, reg_params, crc_algorithm->address,
- crc_algorithm->address + (sizeof(cortex_m3_crc_code) - 6),
+ crc_algorithm->address + (sizeof(cortex_m_crc_code) - 6),
timeout, &armv7m_info);
if (retval == ERROR_OK)