Skip to content

Commit

Permalink
sw: Add fence ensuring Snitch entry point is programmed
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Dec 9, 2023
1 parent 68812c6 commit 84a6048
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/sim/sw/host/apps/offload/src/offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ int main() {
// Program Snitch entry point and communication buffer
program_snitches();

// Compiler fence to ensure Snitch entry point is
// programmed before Snitches are woken up
asm volatile("" ::: "memory");

// Start Snitches
wakeup_snitches_cl();

Expand Down

0 comments on commit 84a6048

Please sign in to comment.