X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Friscv%2Friscv.c;h=afd0cc8152da08f05c6dbf693d03890430265330;hp=b5fd22b481e690258a2d7c480cd7370f3baec9d6;hb=59cc1f6629a8d8008cd5af69792e63adecd56b7c;hpb=e41c3f78d13b9450c5c96d7188d8ec775df8f4ad diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index b5fd22b481..afd0cc8152 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -772,12 +772,9 @@ static int oldriscv_step(struct target *target, int current, uint32_t address, return tt->step(target, current, address, handle_breakpoints); } -static int old_or_new_riscv_step( - struct target *target, - int current, - target_addr_t address, - int handle_breakpoints -){ +static int old_or_new_riscv_step(struct target *target, int current, + target_addr_t address, int handle_breakpoints) +{ RISCV_INFO(r); LOG_DEBUG("handle_breakpoints=%d", handle_breakpoints); if (r->is_halted == NULL) @@ -862,13 +859,9 @@ static int oldriscv_resume(struct target *target, int current, uint32_t address, debug_execution); } -static int old_or_new_riscv_resume( - struct target *target, - int current, - target_addr_t address, - int handle_breakpoints, - int debug_execution -){ +static int old_or_new_riscv_resume(struct target *target, int current, + target_addr_t address, int handle_breakpoints, int debug_execution) +{ LOG_DEBUG("handle_breakpoints=%d", handle_breakpoints); if (target->smp) { struct target_list *targets = target->head; @@ -1413,12 +1406,9 @@ int riscv_openocd_resume( return out; } -int riscv_openocd_step( - struct target *target, - int current, - target_addr_t address, - int handle_breakpoints -) { +int riscv_openocd_step(struct target *target, int current, + target_addr_t address, int handle_breakpoints) +{ LOG_DEBUG("stepping rtos hart"); if (!current)