linux
linux copied to clipboard
LoongArch: Add LBT extensions support
Loongson Binary Translation (LBT) is used to accelerate binary translation, which contains 4 sketch registers (scr0 to scr3), x86/ARM eflags (eflags) and x87 fpu stack pointer (ftop).
This patch support kernel to save/restore these registers, handle the LBT exception and maintain sigcontext.
Signed-off-by: Qi Hu [email protected]