aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2021-04-22 08:40:02 +0200
committerTomas Vanek <vanekt@fbl.cz>2021-04-30 08:20:54 +0100
commitef0aa38c108be536deff73c299ba542e215a892f (patch)
tree4cfab312c1f6bdfd95ea17414c024318c2ccbe15 /src/rtos
parentab337d05f432465fdfedb694ac862fb22f80d7a6 (diff)
downloadriscv-openocd-ef0aa38c108be536deff73c299ba542e215a892f.zip
riscv-openocd-ef0aa38c108be536deff73c299ba542e215a892f.tar.gz
riscv-openocd-ef0aa38c108be536deff73c299ba542e215a892f.tar.bz2
target/armv7m: change FPv4_SP and FPv5_SP/DP identifiers to uppercase
Change-Id: Ia421a973e5fb4767715c9f95c91745f8ca1de1da Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/6177 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/FreeRTOS.c2
-rw-r--r--src/rtos/nuttx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rtos/FreeRTOS.c b/src/rtos/FreeRTOS.c
index 4d520b9..f04b0a2 100644
--- a/src/rtos/FreeRTOS.c
+++ b/src/rtos/FreeRTOS.c
@@ -438,7 +438,7 @@ static int FreeRTOS_get_thread_reg_list(struct rtos *rtos, int64_t thread_id,
int cm4_fpu_enabled = 0;
struct armv7m_common *armv7m_target = target_to_armv7m(rtos->target);
if (is_armv7m(armv7m_target)) {
- if (armv7m_target->fp_feature == FPv4_SP) {
+ if (armv7m_target->fp_feature == FPV4_SP) {
/* Found ARM v7m target which includes a FPU */
uint32_t cpacr;
diff --git a/src/rtos/nuttx.c b/src/rtos/nuttx.c
index 6569e38..0705b17 100644
--- a/src/rtos/nuttx.c
+++ b/src/rtos/nuttx.c
@@ -352,7 +352,7 @@ static int nuttx_get_thread_reg_list(struct rtos *rtos, int64_t thread_id,
bool cm4_fpu_enabled = false;
struct armv7m_common *armv7m_target = target_to_armv7m(rtos->target);
if (is_armv7m(armv7m_target)) {
- if (armv7m_target->fp_feature == FPv4_SP) {
+ if (armv7m_target->fp_feature == FPV4_SP) {
/* Found ARM v7m target which includes a FPU */
uint32_t cpacr;