Skip to content

Commit

Permalink
[sw] update processor check program
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Oct 18, 2023
1 parent 95b3f9c commit 63219c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/example/processor_check/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ int main() {
cnt_test++;

asm volatile ("fence"); // flush/reload d-cache
if (neorv32_cpu_csr_read(CSR_MXISA) & (1 << CSR_MXISA_ZIFENCEI)) {
asm volatile ("fence.i"); // clear instruction prefetch buffer and clear i-cache
}
asm volatile ("fence.i"); // clear instruction prefetch buffer and clear i-cache
asm volatile ("fence");
asm volatile ("fence.i");

if (neorv32_cpu_csr_read(CSR_MCAUSE) == mcause_never_c) {
test_ok();
Expand Down

0 comments on commit 63219c9

Please sign in to comment.