mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
Wire gen_clear_cache to __riscv64_clear_cache builtin, emitting fence.i for instruction cache synchronization. Add lib/riscvflush.c to provide __clear_cache for JIT bootstrap. Extend tccrun.c I-cache flush guard to include RISC-V targets. Add gen_clear_cache declaration to tcc.h riscv64 section.
11 lines
275 B
C
11 lines
275 B
C
/* riscvflush.c - flush the instruction cache
|
|
|
|
__clear_cache is used in tccrun.c, It is a built-in
|
|
intrinsic with gcc. However tcc in order to compile
|
|
itself needs this function */
|
|
|
|
void __clear_cache(void *beg, void *end)
|
|
{
|
|
__riscv64_clear_cache(beg, end);
|
|
}
|