[PowerPC] Fix inclusion of dfp pseudoregs in tdep
authorPedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
Tue, 22 May 2018 14:09:05 +0000 (11:09 -0300)
committerPedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
Tue, 22 May 2018 14:52:03 +0000 (11:52 -0300)
commit0fb2aaa15e04238644471f7d89be3667784b19c0
tree608d8c12da0e6ff0ca24916e760b4b2256327267
parent2c3305f6b0432e37d26ce7761d0c4415ab5ca911
[PowerPC] Fix inclusion of dfp pseudoregs in tdep

Previously, decimal floating point pseudoregisters were always included
in the target if it had a floating point unit.

This patch changes this to only include them if the target description
indicates that they are present, i.e. if the FPSCR register has more
than 32 bits.

gdb/ChangeLog:
2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>

* rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
if the size of fpscr is larger than 32 bits.
gdb/ChangeLog
gdb/rs6000-tdep.c