This is an archive of the discontinued LLVM Phabricator instance.

MIPS: clear_cache, use _flush_cache instead of cacheflush
ClosedPublic

Authored by wzssyqa on Jul 23 2023, 9:42 PM.

Details

Summary

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 Timeline

wzssyqa created this revision.Jul 23 2023, 9:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2023, 9:42 PM
wzssyqa requested review of this revision.Jul 23 2023, 9:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2023, 9:42 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
brad accepted this revision.Aug 6 2023, 5:52 AM
This revision is now accepted and ready to land.Aug 6 2023, 5:52 AM
jrtc27 accepted this revision.Aug 6 2023, 4:29 PM
This revision was automatically updated to reflect the committed changes.