public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3204] Darwin, X86 : Implement __cache_clear.
@ 2021-08-29 6:51 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2021-08-29 6:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:fc3e9f58ec18154027aadc6aa055490acb8c2920
commit r12-3204-gfc3e9f58ec18154027aadc6aa055490acb8c2920
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Sep 4 14:05:12 2020 +0100
Darwin, X86 : Implement __cache_clear.
We had a NOP cache clear, but there is a suitable mechanism provided
by a system call. This connects it up.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:
* config/i386/darwin.h (CLEAR_INSN_CACHE): New.
Diff:
---
gcc/config/i386/darwin.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index 73b06e2307d..da0ae5b3ee7 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -344,3 +344,8 @@ along with GCC; see the file COPYING3. If not see
#undef SUBTARGET_SHADOW_OFFSET
#define SUBTARGET_SHADOW_OFFSET \
(TARGET_LP64 ? HOST_WIDE_INT_1 << 44 : HOST_WIDE_INT_1 << 29)
+
+#undef CLEAR_INSN_CACHE
+#define CLEAR_INSN_CACHE(beg, end) \
+ extern void sys_icache_invalidate(void *start, size_t len); \
+ sys_icache_invalidate ((beg), (size_t)((end)-(beg)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-29 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-29 6:51 [gcc r12-3204] Darwin, X86 : Implement __cache_clear Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).