Print a bit more when a hart is halted

I think I'm getting some "wrong hart halted" issues here.
This commit is contained in:
Palmer Dabbelt 2018-05-30 01:03:02 -07:00
parent 755bf8d558
commit 0be30cc58c
1 changed files with 4 additions and 0 deletions

View File

@ -1035,6 +1035,8 @@ int riscv_openocd_poll(struct target *target)
}
#ifdef RISCV_DEBUG_POLL
LOG_DEBUG(" hart %d halted", halted_hart);
#else
LOG_DEBUG("hart %d halted", halted_hart);
#endif
/* If we're here then at least one hart triggered. That means
@ -1060,6 +1062,8 @@ int riscv_openocd_poll(struct target *target)
halted_hart = riscv_current_hartid(target);
#ifdef RISCV_DEBUG_POLL
LOG_DEBUG(" hart %d halted", halted_hart);
#else
LOG_DEBUG("hart %d halted", halted_hart);
#endif
}