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 16, 2024
1 parent 29645e2 commit aa30d6a
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 aa30d6a

Please sign in to comment.