Skip to content

Commit 0c819b2

Browse files
committed
sw: Fix multi-cluster setting EOC correctly
Use cluster local core ID for determining which core is to set EOC instead of global one. This fixes multi-cluster configurations not setting the EOC correctly on cluster != 0
1 parent 25b1314 commit 0c819b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sw/snRuntime/src/platforms/cheshire/start_snitch.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _snrt_exit:
1515
addi sp, sp, -8
1616
sw a0, 0(sp)
1717
sw ra, 4(sp)
18-
call snrt_global_core_idx
18+
call snrt_cluster_core_idx
1919
# reload exit code into t0
2020
lw t0, 0(sp)
2121
lw ra, 4(sp)

sw/snRuntime/src/platforms/standalone/start_snitch.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _snrt_exit:
1515
addi sp, sp, -8
1616
sw a0, 0(sp)
1717
sw ra, 4(sp)
18-
call snrt_global_core_idx
18+
call snrt_cluster_core_idx
1919
# reload exit code into t0
2020
lw t0, 0(sp)
2121
lw ra, 4(sp)

0 commit comments

Comments
 (0)