software/bios/cmds: fix crc command with L2 cache

Same CRC was always reported if the memory region was in the cache...
Noticed when manually testing spiflash divisor.
This commit is contained in:
Andrew Dennison 2024-02-01 10:18:52 +11:00
parent 3a890a077b
commit de594e44c9
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ static void crc_handler(int nb_params, char **params)
return;
}
flush_cpu_dcache();
flush_l2_cache();
printf("CRC32: %08x", crc32((unsigned char *)addr, length));
}