riscv-compliance: make sure reset assertion and deassertion actually worked.

This commit is contained in:
Megan Wachs 2018-04-17 15:47:15 -07:00
parent f516825079
commit 401dcf7a06
1 changed files with 2 additions and 3 deletions

View File

@ -3318,11 +3318,10 @@ int riscv013_test_compliance(struct target *target)
dmi_read(target, &abstractauto, DMI_ABSTRACTAUTO);
/* Pulse reset. */
target->reset_halt = true;
riscv_set_current_hartid(target, 0);
assert_reset(target);
deassert_reset(target);
COMPLIANCE_TEST(ERROR_OK == assert_reset(target), "Must be able to assert NDMRESET");
COMPLIANCE_TEST(ERROR_OK == deassert_reset(target), "Must be able to deassert NDMRESET");
/* Verify that most stuff is not affected by ndmreset. */
dmi_read(target, &testvar_read, DMI_COMMAND);