X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftarget%2Faarch64.c;h=0a6b67f7d3d60436ff15bbfd4c4eed2037a39f84;hb=7c2dc138b32291e12e68ecd0391053d66efd53aa;hp=cabeb9cd35fcad0027c31622b1f1183e8fffa143;hpb=beece50670e86c36d0de987c581db5250604695c;p=openocd.git diff --git a/src/target/aarch64.c b/src/target/aarch64.c index cabeb9cd35..0a6b67f7d3 100644 --- a/src/target/aarch64.c +++ b/src/target/aarch64.c @@ -624,6 +624,10 @@ static int aarch64_resume(struct target *target, int current, target_call_event_callbacks(target, TARGET_EVENT_RESUMED); return 0; } + + if (target->state != TARGET_HALTED) + return ERROR_TARGET_NOT_HALTED; + aarch64_internal_restore(target, current, &addr, handle_breakpoints, debug_execution); if (target->smp) {