Hi Richard,

On 9/21/21 21:30, Richard Henderson wrote:
On 9/20/21 11:02 PM, WANG Xuerui wrote:
So should I drop the explicit probing for __loongarch64, instead just probe for __loongarch__ and later #error out the non-__loongarch64 cases individually?
I'm ok with checking the __loongarch64 define, but I thing 
ARCH=loongarch is sufficient. That name will apply to 
linux-user/host/$ARCH/ and tcg/$ARCH/.
I just dug deeper into this while waiting for compilations; indeed the cpu variable must be "loongarch64" but ARCH could be just "loongarch". The $cpu is shoved directly into the meson cross file as CPU family name, for which only "loongarch64" is valid [1]. I'll keep probing for __loongarch64 but just transform the ARCH value.
[1]: https://mesonbuild.com/Reference-tables.html#cpu-families



Reply via email to