[libre-riscv-dev] more compatible alternative to BE instructions on LE processor

Lauri Kasanen cand at gmx.com
Wed May 13 07:29:53 BST 2020


On Tue, 12 May 2020 19:56:45 -0700
Jacob Lifshay <programmerjake at gmail.com> wrote:

> Since having the instruction stream be BE is not directly compatible with
> existing LE instructions since calling between them requires a mode switch
> to switch endian, I propose a different solution that doesn't require any
> mode switch, is compatible with LE instructions, and allows supporting
> instructions that are any size, though will probably be limited to
> multiples of 16 bits.

The PowerISA 3.1 doc adds a 32-bit prefix (page 46 of the pdf (reader),
page 22 of the official naming). I didn't go into details, but for such
plans it'd be good to take into account.

- Lauri



More information about the libre-riscv-dev mailing list