Newer
Older
barebox / arch / kvx / include / asm / cache.h
@Clement Leger Clement Leger on 1 Jul 2020 315 bytes kvx: add I-cache and D-cache synchronisation
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2019 Kalray Inc.
 */

#ifndef __KVX_CACHE_H
#define __KVX_CACHE_H

#include <linux/types.h>

static inline void sync_caches_for_execution(void)
{
	__builtin_kvx_fence();
	__builtin_kvx_iinval();
	__builtin_kvx_barrier();
}

#endif /* __KVX_CACHE_H */