diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-04-11 19:08:56 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-04-11 19:08:56 +0000 |
commit | 56df7850095eebecd554bac3133cffc911bd6f74 (patch) | |
tree | c82d1445817fbab963025cc610dd2ebeeffa9eed /gdb/ppc-bdm.c | |
parent | 593e8a7681e0d8ec673b334e56b380c836d75e20 (diff) | |
download | gdb-56df7850095eebecd554bac3133cffc911bd6f74.tar.gz |
Add support for the fpscr register for Power / PowerPC targets.
Diffstat (limited to 'gdb/ppc-bdm.c')
-rw-r--r-- | gdb/ppc-bdm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ppc-bdm.c b/gdb/ppc-bdm.c index b2287ead93e..f20918e1191 100644 --- a/gdb/ppc-bdm.c +++ b/gdb/ppc-bdm.c @@ -201,6 +201,7 @@ bdm_ppc_fetch_registers (int regno) /* if asking for an invalid register */ if ((first_regno == gdbarch_tdep (current_gdbarch)->ppc_mq_regnum) + || (first_regno == gdbarch_tdep (current_gdbarch)->fpscr_regnum) || ((first_regno >= FP0_REGNUM) && (first_regno <= FPLAST_REGNUM))) { /* printf("invalid reg request!\n"); */ @@ -289,7 +290,9 @@ bdm_ppc_store_registers (int regno) /* only attempt to write if it's a valid ppc 8xx register */ /* (need to avoid FP regs and MQ reg) */ - if ((i != gdbarch_tdep (current_gdbarch)->ppc_mq_regnum) && ((i < FP0_REGNUM) || (i > FPLAST_REGNUM))) + if ((i != gdbarch_tdep (current_gdbarch)->ppc_mq_regnum) + && (i != gdbarch_tdep (current_gdbarch)->ppc_fpscr_regnum) + && ((i < FP0_REGNUM) || (i > FPLAST_REGNUM))) { /* printf("write valid reg %d\n", bdm_regno); */ ocd_write_bdm_registers (bdm_regno, registers + REGISTER_BYTE (i), 4); |