Skip to content

Commit

Permalink
Add fence after writing program with icache
Browse files Browse the repository at this point in the history
  • Loading branch information
marnovandermaas committed Aug 30, 2024
1 parent 8f383b4 commit 32c8407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sw/cheri/checks/hyperram_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ void write_prog(Capability<volatile uint32_t> &hyperram_area, uint32_t addr) {
hyperram_area[addr + 2] = 0x00552023;
hyperram_area[addr + 3] = 0x00000517;
hyperram_area[addr + 4] = 0x8082;

asm volatile ("fence.i" : : : "memory");
}

// Writes a short function to a random area of hyperram and executes it checking
Expand Down

0 comments on commit 32c8407

Please sign in to comment.