aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2018-04-19 10:49:45 -0700
committerMegan Wachs <megan@sifive.com>2018-04-19 10:52:19 -0700
commiteeac4f7fd4a607d2acffd8bfb9ac2e2d5ed45bcb (patch)
tree8768fed699b9fa8f748921d39aad1fdb0733e91a
parentdebf2b040a98202105aeae733e7dfe4d43c0f8eb (diff)
downloadriscv-openocd-eeac4f7fd4a607d2acffd8bfb9ac2e2d5ed45bcb.zip
riscv-openocd-eeac4f7fd4a607d2acffd8bfb9ac2e2d5ed45bcb.tar.gz
riscv-openocd-eeac4f7fd4a607d2acffd8bfb9ac2e2d5ed45bcb.tar.bz2
riscv-compliance: remove whitespace
-rw-r--r--src/target/riscv/riscv-013.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index f1b14c7..632a76e 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -3102,9 +3102,9 @@ int riscv013_test_compliance(struct target *target)
/* HALTSUM -- TODO: More than 32 harts. Would need to loop over this to set hartsel */
/* TODO: HALTSUM2, HALTSUM3 */
- /* HALTSUM0 */
+ /* HALTSUM0 */
uint32_t expected_haltsum0 = 0;
- for (int i = 0; i < MIN(riscv_count_harts(target), 32); i ++)
+ for (int i = 0; i < MIN(riscv_count_harts(target), 32); i++)
expected_haltsum0 |= (1 << i);
dmi_read(target, &testvar_read, DMI_HALTSUM0);
@@ -3120,18 +3120,18 @@ int riscv013_test_compliance(struct target *target)
COMPLIANCE_TEST(testvar_read == expected_haltsum0, "HALTSUM0 should be R/O");
/* HALTSUM1 */
- uint32_t expected_haltsum1 = 0;
- for (int i = 0; i < MIN(riscv_count_harts(target), 1024); i +=32)
+ uint32_t expected_haltsum1 = 0;
+ for (int i = 0; i < MIN(riscv_count_harts(target), 1024); i += 32)
expected_haltsum1 |= (1 << (i/32));
- dmi_read(target, &testvar_read, DMI_HALTSUM1);
+ dmi_read(target, &testvar_read, DMI_HALTSUM1);
COMPLIANCE_TEST(testvar_read == expected_haltsum1,
"HALTSUM1 should report summary of up to 1024 halted harts");
dmi_write(target, DMI_HALTSUM1, 0xffffffff);
dmi_read(target, &testvar_read, DMI_HALTSUM1);
COMPLIANCE_TEST(testvar_read == expected_haltsum1, "HALTSUM1 should be R/O");
-
+
dmi_write(target, DMI_HALTSUM1, 0x0);
dmi_read(target, &testvar_read, DMI_HALTSUM1);
COMPLIANCE_TEST(testvar_read == expected_haltsum1, "HALTSUM1 should be R/O");