Paul Campbell taniwha at
Sat Jun 26 20:31:18 PDT 2021

i noticed today that __builtin_prefetch() emits nothing (at least in my gcc)

i wonder if it makes sense to do this for riscv linux?

static inline void prefetchw( volatile void  *addr)
        asm volatile("lb x0, 0(%0)" : : "r" (addr));


More information about the linux-riscv mailing list