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 Jan 15, 2024
1 parent 31b120d commit 66be30c
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 66be30c

Please sign in to comment.