diff options
author | cgsfv <cgsfv@users.noreply.github.com> | 2019-06-14 11:30:05 +0200 |
---|---|---|
committer | cgsfv <cgsfv@users.noreply.github.com> | 2019-06-14 11:30:05 +0200 |
commit | a5725fe1aee90b82c0797d66e1816b2d664fb76f (patch) | |
tree | 8fcc85b69a5899f7770fcb3ca285c5473adf91f6 | |
parent | fd9c54b1feea13f6846c69fc9e1e8dc3a7879717 (diff) | |
download | riscv-openocd-reverse-resume-order.zip riscv-openocd-reverse-resume-order.tar.gz riscv-openocd-reverse-resume-order.tar.bz2 |
Reversed hart loop order in riscv_resume_go_all_hartsreverse-resume-order
-rw-r--r-- | src/target/riscv/riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 1f4883c..af7f4ef 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -2344,7 +2344,7 @@ void riscv_info_init(struct target *target, riscv_info_t *r) static int riscv_resume_go_all_harts(struct target *target) { RISCV_INFO(r); - for (int i = 0; i < riscv_count_harts(target); ++i) { + for (int i = riscv_count_harts(target)-1; i >= 0; --i) { if (!riscv_hart_enabled(target, i)) continue; |