diff options
author | Michael Snyder <msnyder@vmware.com> | 2003-07-09 22:23:57 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2003-07-09 22:23:57 +0000 |
commit | 32f63c4bfff8c366a2d0c84c65245f80a8564ad4 (patch) | |
tree | d0af3132270dbfb9cb490caab84a41cef38374dc /gdb/sh-tdep.c | |
parent | 402ecd561836840d7c12db85d31d199700de8219 (diff) | |
download | gdb-32f63c4bfff8c366a2d0c84c65245f80a8564ad4.zip gdb-32f63c4bfff8c366a2d0c84c65245f80a8564ad4.tar.gz gdb-32f63c4bfff8c366a2d0c84c65245f80a8564ad4.tar.bz2 |
2003-07-09 Michael Snyder <msnyder@redhat.com>
* sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 655aaaa..5553f61 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -4285,7 +4285,7 @@ sh_dsp_register_sim_regno (int nr) { if (legacy_register_sim_regno (nr) < 0) return legacy_register_sim_regno (nr); - if (nr >= DSP_DSR_REGNUM && nr < DSP_Y1_REGNUM) + if (nr >= DSP_DSR_REGNUM && nr <= DSP_Y1_REGNUM) return nr - DSP_DSR_REGNUM + SIM_SH_DSR_REGNUM; if (nr == DSP_MOD_REGNUM) return SIM_SH_MOD_REGNUM; |