target/loongarch: Split fcc register to fcc0-7 in gdbstub
authorJiajie Chen <c@jia.je>
Tue, 8 Aug 2023 05:42:47 +0000 (13:42 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 24 Aug 2023 03:17:59 +0000 (11:17 +0800)
commit17ffe331a923c9015887917b27212ab39ff1d8ea
tree8ae3efa456efe22d4dc5059ff099563f9034e1b0
parent2948c1fb6b8d806d92394ec358e6ed727e946df9
target/loongarch: Split fcc register to fcc0-7 in gdbstub

Since GDB 13.1(GDB commit ea3352172), GDB LoongArch changed to use
fcc0-7 instead of fcc register. This commit partially reverts commit
2f149c759 (`target/loongarch: Update gdb_set_fpu() and gdb_get_fpu()`)
to match the behavior of GDB.

Note that it is a breaking change for GDB 13.0 or earlier, but it is
also required for GDB 13.1 or later to work.

Signed-off-by: Jiajie Chen <c@jia.je>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230808054315.3391465-1-c@jia.je>
Signed-off-by: Song Gao <gaosong@loongson.cn>
gdb-xml/loongarch-fpu.xml
target/loongarch/gdbstub.c