sbcl.sbcl/tools-for-build/os-provides-flush-icache-test.c
Douglas Katzman e7f2a6d767 Workaround absence of __riscv_flush_icache in theory
Should fix lp#2092573 however the two machines I tried in the gcc farm both
didn't work, in different ways. The Alpine distro failed to build without this
so there's no baseline for it; the other randomly crashes. And it did so at
commit adb814cc titled "riscv: Fix trap handling" so I have no idea what's up.
2025-04-30 01:41:10 +00:00

10 lines
149 B
C

/* test for presence of __riscv_flush_icache */
#include <sys/cachectl.h>
int main ()
{
__riscv_flush_icache(&main, 512, 0);
return 104;
}