
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.
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.
More details on the LBT functionality can be found via the LoongArch ISA guide .