Format error messages.
Change-Id: I50c21319765e1ead279223466ed02a06ecf6a522
This commit is contained in:
parent
4d2d1f7324
commit
40e0c5b976
|
@ -2563,12 +2563,12 @@ static bool riscv013_is_halted(struct target *target)
|
||||||
if (dmstatus_read(target, &dmstatus, true) != ERROR_OK)
|
if (dmstatus_read(target, &dmstatus, true) != ERROR_OK)
|
||||||
return false;
|
return false;
|
||||||
if (get_field(dmstatus, DMI_DMSTATUS_ANYUNAVAIL))
|
if (get_field(dmstatus, DMI_DMSTATUS_ANYUNAVAIL))
|
||||||
LOG_ERROR("hart %d is unavailable", riscv_current_hartid(target));
|
LOG_ERROR("Hart %d is unavailable.", riscv_current_hartid(target));
|
||||||
if (get_field(dmstatus, DMI_DMSTATUS_ANYNONEXISTENT))
|
if (get_field(dmstatus, DMI_DMSTATUS_ANYNONEXISTENT))
|
||||||
LOG_ERROR("hart %d doesn't exist", riscv_current_hartid(target));
|
LOG_ERROR("Hart %d doesn't exist.", riscv_current_hartid(target));
|
||||||
if (get_field(dmstatus, DMI_DMSTATUS_ANYHAVERESET)) {
|
if (get_field(dmstatus, DMI_DMSTATUS_ANYHAVERESET)) {
|
||||||
int hartid = riscv_current_hartid(target);
|
int hartid = riscv_current_hartid(target);
|
||||||
LOG_INFO("hart %d unexpectedly reset!", hartid);
|
LOG_INFO("Hart %d unexpectedly reset!", hartid);
|
||||||
/* TODO: Can we make this more obvious to eg. a gdb user? */
|
/* TODO: Can we make this more obvious to eg. a gdb user? */
|
||||||
dmi_write(target, DMI_DMCONTROL,
|
dmi_write(target, DMI_DMCONTROL,
|
||||||
set_field(DMI_DMCONTROL_DMACTIVE | DMI_DMCONTROL_ACKHAVERESET,
|
set_field(DMI_DMCONTROL_DMACTIVE | DMI_DMCONTROL_ACKHAVERESET,
|
||||||
|
|
Loading…
Reference in New Issue