cfi: fix cfi arch check regression
seems 9933fa334d
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>
__archive__
parent
ca53849045
commit
e95f8d93f2
|
@ -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.common_magic = ARMV7M_COMMON_MAGIC;
|
||||||
arm_algo.core_mode = ARMV7M_MODE_HANDLER;
|
arm_algo.core_mode = ARMV7M_MODE_HANDLER;
|
||||||
arm_algo.core_state = ARM_STATE_ARM;
|
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 */
|
/* All other ARM CPUs have 32 bit instructions */
|
||||||
arm_algo.common_magic = ARM_COMMON_MAGIC;
|
arm_algo.common_magic = ARM_COMMON_MAGIC;
|
||||||
arm_algo.core_mode = ARM_MODE_SVC;
|
arm_algo.core_mode = ARM_MODE_SVC;
|
||||||
|
|
Loading…
Reference in New Issue