aboutsummaryrefslogtreecommitdiff
path: root/src/target/hla_target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/hla_target.c')
-rw-r--r--src/target/hla_target.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/hla_target.c b/src/target/hla_target.c
index 8d2a4291..6bd286ad 100644
--- a/src/target/hla_target.c
+++ b/src/target/hla_target.c
@@ -571,6 +571,11 @@ static int adapter_resume(struct target *target, int current,
resume_pc = buf_get_u32(pc->value, 0, 32);
+ /* write any user vector flags */
+ res = target_write_u32(target, DCB_DEMCR, armv7m->demcr);
+ if (res != ERROR_OK)
+ return res;
+
armv7m_restore_context(target);
/* registers are now invalid */