riscv-compliance: whitespace fixes
This commit is contained in:
parent
2e525e391f
commit
313885cb3b
|
@ -1975,7 +1975,7 @@ static int riscv013_halt_current_hart(struct target *target)
|
|||
|
||||
/* Issue the halt command, and then wait for the current hart to halt. */
|
||||
uint32_t dmcontrol = dmi_read(target, DMI_DMCONTROL);
|
||||
dmcontrol |= DMI_DMCONTROL_HALTREQ;
|
||||
dmcontrol = set_field(dmcontrol, DMI_DMCONTROL_HALTREQ, 1);
|
||||
dmi_write(target, DMI_DMCONTROL, dmcontrol);
|
||||
for (size_t i = 0; i < 256; ++i)
|
||||
if (riscv_is_halted(target))
|
||||
|
@ -1991,7 +1991,7 @@ static int riscv013_halt_current_hart(struct target *target)
|
|||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
dmcontrol &= ~DMI_DMCONTROL_HALTREQ;
|
||||
dmcontrol = set_field(dmcontrol, DMI_DMCONTROL_HALTREQ, 0);
|
||||
dmi_write(target, DMI_DMCONTROL, dmcontrol);
|
||||
|
||||
return ERROR_OK;
|
||||
|
@ -2255,8 +2255,6 @@ int riscv013_test_compliance(struct target *target) {
|
|||
COMPLIANCE_TEST(((testvar == 0) || (get_field(dmcontrol, DMI_DMCONTROL_HASEL)) == 0), "DMCONTROL.hasel can be 0 or RW.");
|
||||
//TODO: test that hamask registers exist if hasel does.
|
||||
|
||||
// TODO: ndmreset
|
||||
|
||||
// haltreq
|
||||
riscv_halt_all_harts(target);
|
||||
// Writing haltreq should not cause any problems for a halted hart, but we
|
||||
|
|
Loading…
Reference in New Issue