]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Define macro CLEAR_INSN_CACHE.
authorLulu Cheng <chenglulu@loongson.cn>
Mon, 23 Oct 2023 01:07:32 +0000 (09:07 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 26 Oct 2023 06:28:10 +0000 (14:28 +0800)
commit1983e252d85c24c3ec6a4ed6be6006098a6b4225
treee1f3803fb4ab066010f9791b8bfbe5613b8d93ad
parent41aab8301d79b35b60f9ba95913b484988ed08e1
LoongArch: Define macro CLEAR_INSN_CACHE.

LoongArch's microstructure ensures cache consistency by hardware.
Due to out-of-order execution, "ibar" is required to ensure the visibility of the
store (invalidated icache) executed by this CPU before "ibar" (to the instance).
"ibar" will not invalidate the icache, so the start and end parameters are not Affect
"ibar" performance.

gcc/ChangeLog:

* config/loongarch/loongarch.h (CLEAR_INSN_CACHE): New definition.

(cherry picked from commit 5697ed0327f23d2e2ec4f7beec3b3d02f463173c)
gcc/config/loongarch/loongarch.h