cortex_m3: report detected error condition in poll
commitaa4c140a1214f2b75e43d8d3580a5d06083f46a2
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 9 Nov 2010 08:14:21 +0000 (9 09:14 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 9 Nov 2010 12:03:22 +0000 (9 13:03 +0100)
treec201c006ef03558a4df1012e0008ec02b134d423
parent6c04f1e440be1451b1d7599910e377b90b7dc569
cortex_m3: report detected error condition in poll

If the CPU crashed at some point, poll will discover this.

Previously the poll fn would clear the error and print a warning,
rather than propagating the error.

The new behavior is to report the error back up, but still
clear the error.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/cortex_m3.c