aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_mesh1d
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-08-09 17:35:26 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-08-09 17:35:26 +0300
commit489beadf61d05f40dd4ac40e4e5290502f7ad078 (patch)
tree58241d94c3376aae6b081c6fe16288aa0f4d8593 /tests/simple_mesh1d
parent1853f5d6594bc371e4d8e631c24acd011a620915 (diff)
downloadgran-489beadf61d05f40dd4ac40e4e5290502f7ad078.tar.gz
gran-489beadf61d05f40dd4ac40e4e5290502f7ad078.zip
format
Diffstat (limited to 'tests/simple_mesh1d')
-rw-r--r--tests/simple_mesh1d/sim.c4
-rw-r--r--tests/simple_mesh1d/test.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/simple_mesh1d/sim.c b/tests/simple_mesh1d/sim.c
index b419633..7479a27 100644
--- a/tests/simple_mesh1d/sim.c
+++ b/tests/simple_mesh1d/sim.c
@@ -26,7 +26,9 @@ static stat build_node1d(struct clock_domain *clk, uint16_t x, uint16_t y)
build_tests_simple_mesh1d_test_bin);
uint64_t rcv = mesh1d_addr(i, j, 0);
- struct component *rv64 = create_simple_riscv64(rcv, 0, imem, node);
+ struct component *rv64 = create_simple_riscv64(rcv, 0,
+ imem, node);
+
simple_riscv64_set_reg(rv64, 10, i); /* a0 */
simple_riscv64_set_reg(rv64, 11, j); /* a1 */
simple_riscv64_set_reg(rv64, 12, x); /* a2 */
diff --git a/tests/simple_mesh1d/test.c b/tests/simple_mesh1d/test.c
index 293a91c..df86774 100644
--- a/tests/simple_mesh1d/test.c
+++ b/tests/simple_mesh1d/test.c
@@ -2,7 +2,7 @@
__attribute__((always_inline))
static inline uint64_t mesh1d_addr(uint16_t cluster, uint16_t elem,
- uint32_t off)
+ uint32_t off)
{
return ((uint64_t)cluster << 48) | ((uint64_t)elem << 32) | off;
}