]> 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:05:57 +0000 (14:05 +0800)
commit319e887bdddfb8b9244f9310a54c1f08b7e8f0e8
treea0ac6c45d5905835fdc5d3523bab6249e2c33953
parent3e422483f18682dad0e5d61cd0efb97deee077b7
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