aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cortexm.c')
-rw-r--r--src/cortexm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index ac4c549..ae1c59d 100644
--- a/src/cortexm.c
+++ b/src/cortexm.c
@@ -464,7 +464,7 @@ static int cortexm_halt_wait(target *t)
ADIv5_AP_t *ap = adiv5_target_ap(t);
struct cortexm_priv *priv = ap->priv;
- uint32_t dhcsr = 0;
+ volatile uint32_t dhcsr = 0;
volatile struct exception e;
TRY_CATCH (e, EXCEPTION_ALL) {
/* If this times out because the target is in WFI then