This is an archive of the discontinued LLVM Phabricator instance.

OS-independent __clear_cache for AARCH64
ClosedPublic

Authored by joerg on Jan 27 2014, 12:14 PM.

Details

Summary

From Matt Thomas, implement __clear_cache for all AARCH64 systems.

Diff Detail

Event Timeline

joerg updated this revision to Unknown Object (????).Jan 28 2014, 4:58 AM

Register content is log2.

Hi Joerg,

Just one comment. As far as I can tell from the docs & remember the code itself is good.

clear_cache.c
41 ↗(On Diff #6710)

I strongly suspect we'll still want to forward onto the sys_icache_invalidate at Apple. But the routine looks good for Linux too, so I'd suggest "&& !defined(APPLE)".

joerg closed this revision.Jan 28 2014, 6:08 AM

Closed by commit rL200317 (authored by @joerg).