diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-05-03 16:34:16 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-05-14 09:29:43 +0000 |
commit | e95f8d93f2ae92d7226be947ca5c963bf879c18e (patch) | |
tree | 42866d657a8021366cb8d0ff11b14d3d940b8f07 /src | |
parent | ca53849045b9d505a13d9ec98ff6e58ce13b14f0 (diff) | |
download | riscv-openocd-e95f8d93f2ae92d7226be947ca5c963bf879c18e.zip riscv-openocd-e95f8d93f2ae92d7226be947ca5c963bf879c18e.tar.gz riscv-openocd-e95f8d93f2ae92d7226be947ca5c963bf879c18e.tar.bz2 |
cfi: fix cfi arch check regression
seems 9933fa334de551096674d4044ed7ac2152213e8b introduce a regression
if the target was anything other than armv4_5 or armv7m.
Just check that we have an arm target.
Change-Id: I67c05138e5be2952ee92e9bfa15e1d050844462a
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/615
Tested-by: jenkins
Reviewed-by: Aurelien Jacobs <aurel@gnuage.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nor/cfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index 80d0455..bb6afa3 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -1817,7 +1817,7 @@ static int cfi_spansion_write_block(struct flash_bank *bank, uint8_t *buffer, arm_algo.common_magic = ARMV7M_COMMON_MAGIC; arm_algo.core_mode = ARMV7M_MODE_HANDLER; arm_algo.core_state = ARM_STATE_ARM; - } else if (is_arm7_9(target_to_arm7_9(target))) { + } else if (is_arm(target_to_arm(target))) { /* All other ARM CPUs have 32 bit instructions */ arm_algo.common_magic = ARM_COMMON_MAGIC; arm_algo.core_mode = ARM_MODE_SVC; |