mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 23:54:16 +08:00
Replace the single-purpose lib/riscvflush.c with lib/lib-riscv.c following the lib-arm64.c naming convention.
21 lines
607 B
C
21 lines
607 B
C
/*
|
|
* TCC runtime library for riscv64.
|
|
*
|
|
* Copyright (c) 2026
|
|
*
|
|
* Copying and distribution of this file, with or without modification,
|
|
* are permitted in any medium without royalty provided the copyright
|
|
* notice and this notice are preserved. This file is offered as-is,
|
|
* without any warranty.
|
|
*/
|
|
|
|
/* ------------------------------------------------------------- */
|
|
/* __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);
|
|
}
|