litex/software/libbase/system.c
Sebastien Bourdeauducq 22f7d1716e Remove some boilerplate
2012-05-24 19:22:27 +02:00

23 lines
248 B
C

#include <irq.h>
#include <uart.h>
#include <system.h>
void flush_cpu_icache(void)
{
asm volatile(
"wcsr ICC, r0\n"
"nop\n"
"nop\n"
"nop\n"
"nop\n"
);
}
void flush_cpu_dcache(void)
{
asm volatile(
"wcsr DCC, r0\n"
"nop\n"
);
}