summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/lbt.h
AgeCommit message (Collapse)AuthorFilesLines
2023-09-06LoongArch: Add Loongson Binary Translation (LBT) extension supportQi Hu1-0/+109
Loongson Binary Translation (LBT) is used to accelerate binary translation, which contains 4 scratch 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 <huqi@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>