]> 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>
Mon, 23 Oct 2023 01:26:43 +0000 (09:26 +0800)
commit5697ed0327f23d2e2ec4f7beec3b3d02f463173c
tree04137f9d1a1bb53e5972e67b898ea39ef6f09974
parentf08ca5903c7a02b450b93143467f70b9fd8e0085
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.
gcc/config/loongarch/loongarch.h