aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor
diff options
context:
space:
mode:
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>2021-05-11 09:28:00 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-06-18 23:12:54 +0100
commitf69adafb3dd252eaf6b269b7993b29d3c78a91c8 (patch)
treeff7cf0eb68a05e229f5aea03383eb809dc037943 /src/flash/nor
parentb19505a34377c2bade1aa129108b0c6aec577512 (diff)
downloadriscv-openocd-f69adafb3dd252eaf6b269b7993b29d3c78a91c8.zip
riscv-openocd-f69adafb3dd252eaf6b269b7993b29d3c78a91c8.tar.gz
riscv-openocd-f69adafb3dd252eaf6b269b7993b29d3c78a91c8.tar.bz2
target/arm: optimize architecture flags
In target/arm.h the struct arm do contain 3 flags to retain architecture version for some tweaks. The proposal is to have only one enumerated flag 'arch' for the same purpose. Change-Id: Ia5d5accfed8158ca21eb54af2fdea8e36f0266ae Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: http://openocd.zylin.com/6229 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash/nor')
-rw-r--r--src/flash/nor/stm32lx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c
index 1ea1b1d..5ca424b 100644
--- a/src/flash/nor/stm32lx.c
+++ b/src/flash/nor/stm32lx.c
@@ -718,7 +718,7 @@ static int stm32lx_read_id_code(struct target *target, uint32_t *id)
{
struct armv7m_common *armv7m = target_to_armv7m(target);
int retval;
- if (armv7m->arm.is_armv6m == true)
+ if (armv7m->arm.arch == ARM_ARCH_V6M)
retval = target_read_u32(target, DBGMCU_IDCODE_L0, id);
else
/* read stm32 device id register */