]> git.sur5r.net Git - openocd/blobdiff - src/rtos/ChibiOS.c
Fix ChibiOS FPU detection.
[openocd] / src / rtos / ChibiOS.c
index ef0bb16cf42ed4721fe5c1313b650f657e835d31..a46f7a492a973bb789bb51d9cc8679eeebf9ec29 100644 (file)
@@ -247,7 +247,7 @@ static int ChibiOS_update_stacking(struct rtos *rtos)
        /* Check for armv7m with *enabled* FPU, i.e. a Cortex-M4  */
        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 != FP_NONE) {
                        /* Found ARM v7m target which includes a FPU */
                        uint32_t cpacr;