Merge branch 'master' of git://git.denx.de/u-boot-spi
[platform/kernel/u-boot.git] / arch / riscv / cpu / qemu / cpu.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
4  */
5
6 #include <common.h>
7
8 /*
9  * cleanup_before_linux() is called just before we call linux
10  * it prepares the processor for linux
11  *
12  * we disable interrupt and caches.
13  */
14 int cleanup_before_linux(void)
15 {
16         disable_interrupts();
17
18         cache_flush();
19
20         return 0;
21 }