]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC64] Hide dssall instruction from llvm assembler
authorbdragon <bdragon@FreeBSD.org>
Tue, 8 Sep 2020 22:59:43 +0000 (22:59 +0000)
committerbdragon <bdragon@FreeBSD.org>
Tue, 8 Sep 2020 22:59:43 +0000 (22:59 +0000)
commit9795f5f86866183e5feb2ead2ec8550b59213a1b
tree6f29639f9e235cc1257cdd49850fbc51ce78d3b2
parentbedc20d156c49ab40a9beedcb4feffac99659ffb
[PowerPC64] Hide dssall instruction from llvm assembler

When doing a build for a modern CPUTYPE, llvm will throw errors if obsolete
instructions are used, even if they will never run due to runtime checks.

Hiding the dssall instruction from the assembler fixes kernel build when
overriding CPUTYPE, without having any effect on the generated binary.

This has been in my local tree for over a year and is well tested across
a variety of machines.

Sponsored by: Tag1 Consulting, Inc.
sys/powerpc/aim/aim_machdep.c
sys/powerpc/powerpc/cpu.c