reset ppc_altivec if 'option ALTIVEC' is not present.
authormatthieu <matthieu@openbsd.org>
Mon, 14 Jun 2021 06:10:44 +0000 (06:10 +0000)
committermatthieu <matthieu@openbsd.org>
Mon, 14 Jun 2021 06:10:44 +0000 (06:10 +0000)
commitab5fe0e6510326dcc2684b2df878f396b9a95fb3
treefe4bf8a301d84b9246b7b4fb33828855464ae3e9
parent7e19035f1bc3655a0103447071688eef52af1c59
reset ppc_altivec if 'option ALTIVEC' is not present.

This makes sysctl machdep.altivec return 0 in this case, allowing
applications to select the non-altivec code path.
Issue with pixman reported by cwen@  ok jca@ gkoehler@ deraadt@
sys/arch/macppc/macppc/cpu.c