On 04/05/2016 12:02 PM, Lluís Vilanova wrote: > Peter Maydell writes: > >> On 5 April 2016 at 17:31, Richard Henderson <r...@twiddle.net> wrote: >>> On 04/05/2016 09:23 AM, Lluís Vilanova wrote: >>>> >>>> Got it! >>>> >>>> gcc -march=native --help=params -v 2>&1 | grep "param >>>> l1-cache-line-size" | sed -e 's/.* --param l1-cache-line-size=\([0-9]\+\) >>>> .*/\1/' >>> >>> >>> That will only work on x86, where we can be pretty sure it's 64 anyway. > > Oh, you mean l1-cache-line-size is an x86-only parameter in GCC?
No, using -march=native to detect the host line size. r~