X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Friscv%2Friscv.c;fp=src%2Ftarget%2Friscv%2Friscv.c;h=c6731754438e828b3601a16b75866873b4a7e211;hp=e2d8e7098e567b1de8d0904371a604c5048a8726;hb=06c3240155ccbb22b2db5782ffedf1e0c544b073;hpb=6eda28ef67ba183f75ce0013828fd0e5e47eb83a;ds=sidebyside diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index e2d8e7098e..c673175443 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -2209,17 +2209,17 @@ int riscv_openocd_poll(struct target *target) if (halt_reason == RISCV_HALT_BREAKPOINT) { int retval; switch (riscv_semihosting(t, &retval)) { - case SEMI_NONE: - case SEMI_WAITING: + case SEMIHOSTING_NONE: + case SEMIHOSTING_WAITING: /* This hart should remain halted. */ should_remain_halted++; break; - case SEMI_HANDLED: + case SEMIHOSTING_HANDLED: /* This hart should be resumed, along with any other * harts that halted due to haltgroups. */ should_resume++; break; - case SEMI_ERROR: + case SEMIHOSTING_ERROR: return retval; } } else if (halt_reason != RISCV_HALT_GROUP) { @@ -2280,15 +2280,15 @@ int riscv_openocd_poll(struct target *target) if (target->debug_reason == DBG_REASON_BREAKPOINT) { int retval; switch (riscv_semihosting(target, &retval)) { - case SEMI_NONE: - case SEMI_WAITING: + case SEMIHOSTING_NONE: + case SEMIHOSTING_WAITING: target_call_event_callbacks(target, TARGET_EVENT_HALTED); break; - case SEMI_HANDLED: + case SEMIHOSTING_HANDLED: if (riscv_resume(target, true, 0, 0, 0, false) != ERROR_OK) return ERROR_FAIL; break; - case SEMI_ERROR: + case SEMIHOSTING_ERROR: return retval; } } else {