More test/SBA RTL debug

This commit is contained in:
Ryan Macdonald 2018-04-12 12:26:54 -07:00
parent a9b8820916
commit 1ba3986eb7
1 changed files with 2 additions and 2 deletions

View File

@ -3027,9 +3027,9 @@ static int riscv013_test_sba_config_reg(struct target *target,
/* Test 6: Write to misaligned address */
sbcs = set_field(sbcs_orig, DMI_SBCS_SBACCESS, 1);
write_memory_sba_simple(target, legal_address+1, test_patterns, 1, sbcs);
write_memory_sba_simple(target, legal_address+1, test_patterns, 1, sbcs);
dmi_read(target, &rd_val, DMI_SBCS);
dmi_read(target, &rd_val, DMI_SBCS);
if (get_field(rd_val, DMI_SBCS_SBERROR) == 3) {
sbcs = set_field(sbcs_orig, DMI_SBCS_SBERROR, 1);
dmi_write(target, DMI_SBCS, sbcs);