Loongson Binary Translation Slated For Linux 6.6 - Helping MIPS / x86 / ARM On LoongArch

Written by Michael Larabel in Hardware on 25 July 2023 at 06:22 AM EDT. 7 Comments
HARDWARE
Loongson Binary Translation (LBT) support for the Chinese LoongArch CPU architecture is slated for introduction in the upcoming Linux 6.6 cycle. Loongson Binary Translation aims to help speed-up and handle ARM / x86 / MIPS binary translation on LoongArch more efficiently with capable LoongArch processors.

Loongson Binary Translation (LBT) is part of the LoongArch ISA and currently has extensions for helping with x86, ARM, and MIPS. This means of accelerating binary translation exposes four additional scratch registers, x86/ARM eflags, and a x87 FPU stack pointer.

LoongArch LBT


With this patch for the Linux kernel side there is support for saving/restoring those scratch registers for LBT use, exception handling, and maintaining the sigcontext. This initial LBT support for the Linux kernel is picked up by the "loongarch-next" branch of the Loongson kernel tree. As a result barring any issues it will in turn be added with the upcoming Linux 6.6 cycle.

LoongArch LBT


More details on the LBT functionality can be found via the LoongArch ISA guide.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week