From: Simon Schubert <2@0x2c.org> Date: Fri, 1 Sep 2017 18:34:09 +0000 (+0200) Subject: cortex_m: add profiling function X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=64b0d5aac0c5214db01f938550e8b126891d5a08;hp=64b0d5aac0c5214db01f938550e8b126891d5a08;p=fw%2Fopenocd cortex_m: add profiling function Use DWT_PCSR if present (reads nonzero); otherwise do halt-and-sample pc. Signed-off-by: Simon Schubert <2@0x2c.org> Change-Id: Id2dc4665e5008cc497a2e6e6493522d038d5af42 Reviewed-on: http://openocd.zylin.com/4211 Tested-by: jenkins Reviewed-by: Karl Palsson Reviewed-by: Christopher Head Reviewed-by: Paul Fertser ---