diff options
author | Tarek BOCHKATI <tarek.bouchkati@gmail.com> | 2021-05-11 09:28:00 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-06-18 23:12:54 +0100 |
commit | f69adafb3dd252eaf6b269b7993b29d3c78a91c8 (patch) | |
tree | ff7cf0eb68a05e229f5aea03383eb809dc037943 /src/rtos | |
parent | b19505a34377c2bade1aa129108b0c6aec577512 (diff) | |
download | riscv-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/rtos')
-rw-r--r-- | src/rtos/riot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/riot.c b/src/rtos/riot.c index dcba838..9165fe1 100644 --- a/src/rtos/riot.c +++ b/src/rtos/riot.c @@ -416,7 +416,7 @@ static int riot_create(struct target *target) /* Stacking is different depending on architecture */ struct armv7m_common *armv7m_target = target_to_armv7m(target); - if (armv7m_target->arm.is_armv6m) + if (armv7m_target->arm.arch == ARM_ARCH_V6M) stacking_info = &rtos_riot_cortex_m0_stacking; else if (is_armv7m(armv7m_target)) stacking_info = &rtos_riot_cortex_m34_stacking; |