staticint icache_flush(address addr, int lines, int magic) { // To make a store to instruction memory visible to all RISC-V harts, // the writing hart has to execute a data FENCE before requesting that // all remote RISC-V harts execute a FENCE.I. // // No sush assurance is defined at the interface level of the builtin // method, and so we should make sure it works.
__asm__ volatile("fence rw, rw" : : : "memory");
// ICache::invalidate_range() contains explicit condition that the first // call is invoked on the generated icache flush stub code range.
ICache::invalidate_range(start, 0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.