Add asm memory barrier before CRC32 to flush write buffer
This commit is contained in:
@@ -212,6 +212,7 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ── CRC32 over result region ─────────────────────────────── */
|
/* ── CRC32 over result region ─────────────────────────────── */
|
||||||
|
__asm__ __volatile__("" ::: "memory"); // flush write buffer
|
||||||
crc = 0xFFFFFFFF;
|
crc = 0xFFFFFFFF;
|
||||||
for (i = 0; i < RESULT_WORDS; i++) {
|
for (i = 0; i < RESULT_WORDS; i++) {
|
||||||
uint32_t w = extram[DST_BASE + i];
|
uint32_t w = extram[DST_BASE + i];
|
||||||
|
|||||||
Reference in New Issue
Block a user