Don't make callbacks from riscv_openocd_{halt,resume}

I'm not sure why this would be an issue, but it looks like for some
reason this is causing extraneous halt messages in Eclipse.
This commit is contained in:
Palmer Dabbelt 2018-05-29 23:34:56 -07:00
parent 6b85d0945c
commit 43092445df
1 changed files with 0 additions and 4 deletions

View File

@ -1114,9 +1114,7 @@ int riscv_openocd_halt(struct target *target)
target->rtos->current_thread = r->rtos_hartid + 1; target->rtos->current_thread = r->rtos_hartid + 1;
} }
target->state = TARGET_HALTED;
target->debug_reason = DBG_REASON_DBGRQ; target->debug_reason = DBG_REASON_DBGRQ;
target_call_event_callbacks(target, TARGET_EVENT_HALTED);
return out; return out;
} }
@ -1177,8 +1175,6 @@ int riscv_openocd_resume(
} }
register_cache_invalidate(target->reg_cache); register_cache_invalidate(target->reg_cache);
target->state = TARGET_RUNNING;
target_call_event_callbacks(target, TARGET_EVENT_RESUMED);
return out; return out;
} }