Page MenuHomeFreeBSD

powerpc: Update CPUTYPE options in make.conf
ClosedPublic

Authored by ivy on Tue, Dec 16, 4:24 PM.
Tags
None
Referenced Files
F141521485: D54257.diff
Tue, Jan 6, 7:03 PM
Unknown Object (File)
Tue, Jan 6, 2:20 AM
Unknown Object (File)
Mon, Jan 5, 2:37 AM
Unknown Object (File)
Thu, Jan 1, 6:12 PM
Unknown Object (File)
Mon, Dec 29, 1:31 AM
Unknown Object (File)
Sat, Dec 27, 7:44 AM
Unknown Object (File)
Sat, Dec 27, 7:44 AM
Unknown Object (File)
Sat, Dec 27, 7:44 AM

Details

Summary

Document the supported PPC/POWER CPUTYPEs in the example make.conf.

Update bsd.cpu.mk to handle CPUs newer than POWER9, and remove
32-bit CPUTYPEs since we no longer support those at all.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Tue, Dec 16, 4:24 PM

Isn't make.conf also read for userspace builds and ports? I think we still support 32-bit userland. Would there be a corresponding change to remove the i386 bits as well?

has the 32 bit ppc kernel code gone away yet?

Isn't make.conf also read for userspace builds and ports? I think we still support 32-bit userland. Would there be a corresponding change to remove the i386 bits as well?

my understanding is that CPUTYPE is orthogonal to word length and specifies the physical CPU type, since it controls things like instruction scheduling. since we only boot on 64-bit CPUs, there's no reason to ever specify a 32-bit-only CPU in CPUTYPE: when compiling a 32-bit application on a PPC970, you would use cc -m32 -mcpu=970, which will generate 32-bit code even though the 970 is a 64-bit CPU.

so we should probably remove i486 as well, yes.

has the 32 bit ppc kernel code gone away yet?

no, but it is no longer supported, so we don't need to support it. it would be different if it had been downgraded to tier 3 rather than becoming entirely unsupported.

This revision is now accepted and ready to land.Sun, Dec 28, 5:24 AM
This revision was automatically updated to reflect the committed changes.