Added CPU cycle counting support for Cortex-M4