From 8fa81c1f979e19e313b8a83e5f23dd19feca1e46 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Tue, 17 Apr 2018 16:11:03 -0700 Subject: [PATCH] riscv-compliance... code that compiles > code that makes linter happy --- src/target/riscv/riscv-013.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index c7d506835..85d0ca966 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -3213,10 +3213,11 @@ int riscv013_test_compliance(struct target *target) write_abstract_arg(target, 0, 0xDEADBEEFDEADBEEF, 64); COMPLIANCE_TEST(ERROR_OK == register_read_direct(target, &testval_read, GDB_REGNO_ZERO + i), "GPR Reads should be supported."); - if (riscv_xlen(target) > 32) + if (riscv_xlen(target) > 32) { COMPLIANCE_TEST(testval == testval_read, "GPR Reads and writes should be supported."); - else + } else { COMPLIANCE_TEST((testval & 0xFFFFFFFF) == testval_read, "GPR Reads and writes should be supported."); + } } /* ABSTRACTAUTO