The cacheflush is only defined with __USE_MISC, which depends on _DEFAULT_SOURCE, _GNU_SOURCE or _BSD_SOURCE, or _SVID_SOURCE.
If CC is called with -std=c11, these macros won't be defined, Let's use _flush_cache, which is defined always.
Differential D156072
MIPS: clear_cache, use _flush_cache instead of cacheflush wzssyqa on Jul 23 2023, 9:42 PM. Authored by
Details The cacheflush is only defined with __USE_MISC, which depends on _DEFAULT_SOURCE, _GNU_SOURCE or _BSD_SOURCE, or _SVID_SOURCE. If CC is called with -std=c11, these macros won't be defined, Let's use _flush_cache, which is defined always.
Diff Detail
Event TimelineComment Actions Looks like this should be Ok on OpenBSD as well. https://github.com/openbsd/src/commit/6029ab564a665c6d53d6fd049103f350efba778f |