mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 10:21:38 +00:00
platform: generic: spacemit: k1: rename cache flush operation
MRAOP_ICACHE_INVALID is used to flush the local D-cache before a hart stops, so the name incorrectly describes I-cache invalidation. Rename it to MRAOP_CACHE_FLUSH without changing its encoded value. Signed-off-by: Xianbin Zhu <xianbin.zhu@linux.spacemit.com> Reviewed-by: E Shattow <e@freeshell.de> Co-developed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Tested-by: E Shattow <e@freeshell.de> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20261028-spacemit-k3-v6-2-01d984f60941@linux.spacemit.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
1 parent
5dd2a0619e
commit
2c4172cd3c
2 files changed
+2
-3
No files matched your search
@@ -92,7 +92,7 @@ static int spacemit_hart_stop(void)
|
||||
asm volatile ("fence iorw, iorw");
|
||||
|
||||
/* flush local dcache */
|
||||
csr_write(CSR_MRAOP, MRAOP_ICACHE_INVALID);
|
||||
csr_write(CSR_MRAOP, MRAOP_CACHE_FLUSH);
|
||||
asm volatile ("fence iorw, iorw");
|
||||
|
||||
/* disable dcache */
|
||||
|
||||
Reference in new issue
Block a user