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

#ifndef _ASM_RISCV_CACHE_H
#define _ASM_RISCV_CACHE_H

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

#define sync_caches_for_execution sync_caches_for_execution
void sync_caches_for_execution(void);

#include <asm-generic/cache.h>

#endif /* _ASM_RISCV_CACHEFLUSH_H */