Revert "fix(c9xx): don't flush dcache when invalidating"

This reverts commit adec30ace4.
This commit is contained in:
Han Gao
2024-01-31 13:37:42 +08:00
committed by Han Gao/Revy/Rabenda
parent 74eca2553e
commit 4529d8d50f
5 changed files with 17 additions and 3 deletions

View File

@@ -104,6 +104,16 @@ void invalidate_dcache_range(unsigned long start, unsigned long end)
{
register unsigned long i asm("a0") = start & ~(CONFIG_SYS_CACHELINE_SIZE - 1);
for (; i < end; i += CONFIG_SYS_CACHELINE_SIZE)
asm volatile(".long 0x02b5000b"); /* dcache.cipa a0 */
sync_is();
}
void invalid_dcache_range(unsigned long start, unsigned long end)
{
register unsigned long i asm("a0") = start & ~(CONFIG_SYS_CACHELINE_SIZE - 1);
for (; i < end; i += CONFIG_SYS_CACHELINE_SIZE)
asm volatile(".long 0x02a5000b"); /* dcache.ipa a0 */