lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clearing of instruction cache


From: Marc Nieper-Wißkirchen
Subject: Clearing of instruction cache
Date: Sat, 6 Aug 2022 20:24:49 +0200

I have noticed that on some targets, like ARM, where it is important to clear the instruction cache before calling jitted code, the jit_flush operation is a no-op when GNU lightning is not compiled with GCC:

https://git.savannah.gnu.org/cgit/lightning.git/tree/lib/jit_arm.c#n2008

This cannot be correct unless GNU lightning is not supposed to be compiled with a different compiler.

It would probably be better to have a check for libgcc in `configure.ac' (e.g. by using `AC_LIB_HAVE_LINKFLAGS' from [1]) instead so that only `libgcc' would be needed and not `gcc' as the C compiler.

Thanks,

Marc

--

[1] https://www.gnu.org/software/gnulib/manual/html_node/Searching-for-Libraries.html#Simple-Library-Tests

reply via email to

[Prev in Thread] Current Thread [Next in Thread]