cortex_m: use the new enum ARMV7M_REGSEL_name
[fw/openocd] / src / flash / nor / psoc6.c
index 30bf8850198b1bb5404ef23675490dffe49d0e91..19d483bab42424b6e21ee63d05895eb07f949d11 100644 (file)
@@ -153,7 +153,7 @@ static int sromalgo_prepare(struct target *target)
 
        /* Restore THUMB bit in xPSR register */
        const struct armv7m_common *cm = target_to_armv7m(target);
-       hr = cm->store_core_reg_u32(target, ARMV7M_xPSR, 0x01000000);
+       hr = cm->store_core_reg_u32(target, ARMV7M_REGSEL_xPSR, 0x01000000);
        if (hr != ERROR_OK)
                return hr;