3 ms·
It appears the that the caching code was added in this patch: https://gcc.gnu.org/ml/gcc-patches/2012-09/msg00076.html https://gcc.gnu.org/ml/gcc-patches/2012-
by dsp1234 10y ago
It appears the that the caching code was added in this patch:
https://gcc.gnu.org/ml/gcc-patches/2012-09/msg00076.html https://gcc.gnu.org/ml/gcc-patches/2012-09/msg00076.html
Prior to that, the call:
asm volatile ("mrs\t%0, ctr_el0":"=r" (cache_info));
was always made.
- willvarfar 10y agoBut the task can be rescheduled on a little core part-way through the execution... The big cores should report the smaller cache line size always.
- dsp1234 10y agoI was just pointing out where the caching of the size was added. I'm not making a comment on where the fix should be.