summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/cacheflush.h
blob: 9ff25740c66b58b8c5598b42f56227ef8660968a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2015 Regents of the University of California
 */

#ifndef _ASM_RISCV_CACHEFLUSH_H
#define _ASM_RISCV_CACHEFLUSH_H

static inline void local_flush_icache_all(void)
{
#ifdef HAS_CACHE
	asm volatile ("fence.i" ::: "memory");
#endif
}

#endif /* _ASM_RISCV_CACHEFLUSH_H */