binutils-gdb/gdb/features
Andrew Burgess 172fb711a2 gdb/riscv: Use legacy register numbers in default target description
When the target description support was added to RISC-V, the register
numbers assigned to the fflags, frm, and fcsr control registers in the
default target descriptions didn't match the register numbers used by
GDB before the target description support was added.

What this means is that if a tools exists in the wild that is using
hard-coded register number, setup to match GDB's old numbering, then
this will have been broken (for fflags, frm, and fcsr) by the move to
target descriptions.  QEMU is such a tool.

There are a couple of solutions that could be used to work around this
issue:

 - The user can create their own xml description file with the
   register numbers setup to match their old tool, then load this by
   telling GDB 'set tdesc filename FILENAME'.

 - Update their old tool to use the newer default numbering scheme, or
   better yet add proper target description support to their tool.

 - We could have RISC-V GDB change to maintain the old defaults.

This patch changes GDB back to using the old numbering scheme.

This change is only visible to remote targets that don't supply their
own xml description file and instead rely on GDB's default numbering.

Note that even though 32bit-cpu.xml and 64bit-cpu.xml have changed,
the corresponding .c file has not, this is because the numbering added
to the registers in the xml files is number 0, this doesn't result in
any new C code being generated .

gdb/ChangeLog:

	* features/riscv/32bit-cpu.xml: Add register numbers.
	* features/riscv/32bit-fpu.c: Regenerate.
	* features/riscv/32bit-fpu.xml: Add register numbers.
	* features/riscv/64bit-cpu.xml: Add register numbers.
	* features/riscv/64bit-fpu.c: Regenerate.
	* features/riscv/64bit-fpu.xml: Add register numbers.
2019-02-26 22:57:35 +02:00
..
arm Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
i386 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
riscv gdb/riscv: Use legacy register numbers in default target description 2019-02-26 22:57:35 +02:00
rs6000 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sparc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-core.c
aarch64-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-fpu.c
aarch64-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64-sve.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
aarch64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
arc-arcompact.c
arc-arcompact.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
arc-v2.c
arc-v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
btrace-conf.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
btrace.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
feature_to_c.sh Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdb-target.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdbserver-regs.xsl
library-list-aix.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
library-list-svr4.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
library-list.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
m68k-core.xml
Makefile Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-stack-protect.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze-with-stack-protect.c
microblaze-with-stack-protect.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze.c
microblaze.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-cp0.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-dsp-linux.c
mips64-dsp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-dsp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips64-linux.c
mips64-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-cp0.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-dsp-linux.c
mips-dsp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-dsp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips-linux.c
mips-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-fpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32-system.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nds32.c
nds32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2-cpu.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nios2.c
nios2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
number-regs.xsl
or1k-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
or1k.c
or1k.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
osdata.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-acr.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-core32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-core64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-fpr.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gs-linux64.c
s390-gs-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gs.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-gsbc.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32.c
s390-linux32.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32v1.c
s390-linux32v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux32v2.c
s390-linux32v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64.c
s390-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64v1.c
s390-linux64v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-linux64v2.c
s390-linux64v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-tdb.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-te-linux64.c
s390-te-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-tevx-linux64.c
s390-tevx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-vx-linux64.c
s390-vx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390-vx.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-core64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-gs-linux64.c
s390x-gs-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64.c
s390x-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64v1.c
s390x-linux64v1.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-linux64v2.c
s390x-linux64v2.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-te-linux64.c
s390x-te-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-tevx-linux64.c
s390x-tevx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
s390x-vx-linux64.c
s390x-vx-linux64.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sort-regs.xsl
threads.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c6xp.c
tic6x-c6xp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c62x-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c64x-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-c64xp-linux.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-core.c
tic6x-core.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tic6x-gp.c
tic6x-gp.xml Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
traceframe-info.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
xinclude.dtd Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00