]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: LoongArch: Add LBT extension support
authorFeiyang Chen <chenfeiyang@loongson.cn>
Thu, 25 Jan 2024 08:32:36 +0000 (16:32 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 6 Feb 2024 10:40:19 +0000 (18:40 +0800)
commite4d74c01e77365f1327e4e567e7579cdd3bf74f6
tree57a80ffa2ea61b4754b9d71f89fcee012966bf05
parent1e9569f383a3d5a88ee07d0c2401bd95613c222e
gdb: LoongArch: Add LBT extension support

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 gdb to fetch/store these registers.

Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn> # Framework
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> # Detail Optimizes
Signed-off-by: Hui Li <lihui@loongson.cn> # Error Fixes
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/arch/loongarch.c
gdb/arch/loongarch.h
gdb/features/Makefile
gdb/features/loongarch/lbt.c [new file with mode: 0644]
gdb/features/loongarch/lbt.xml [new file with mode: 0644]
gdb/loongarch-linux-nat.c
gdb/loongarch-linux-tdep.c
gdb/loongarch-tdep.c
gdb/loongarch-tdep.h
gdbserver/linux-loongarch-low.cc