[PATCH] D92445: [PowerPC] Add powerpcle target.

Brandon Bergren via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 11:41:11 PST 2020


Bdragon28 added a comment.

In D92445#2428563 <https://reviews.llvm.org/D92445#2428563>, @sfertile wrote:

>> On FreeBSD, the main use of this will be on the new powerpc64le arch, where we need to build a 32-bit LE bootloader for use with pseries. (it is easier to retarget LLVM than make a cross-endian bootloader, as it would involve rewriting filesystem code etc.)
>
> Excuse my ignorance, but what are there technical limitations preventing writing n 64-bit LE boot loader and avoid having a 32-bit LE target all-together?

LoPAPR client binding requirements, section B.10.
"OF Client Programs for an LoPAPR platform shall execute in 32-bit mode with an OF cell size of 1."

FreeBSD loader on pseries is an OF client, and as such, while it is free to be either BE or LE (OF is required to adapt itself), it MUST be a 32-bit image.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92445/new/

https://reviews.llvm.org/D92445



More information about the cfe-commits mailing list