From 32f63c4bfff8c366a2d0c84c65245f80a8564ad4 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 9 Jul 2003 22:23:57 +0000 Subject: 2003-07-09 Michael Snyder * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error. --- gdb/ChangeLog | 4 ++++ gdb/sh-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dba180c..faafc5d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-07-09 Michael Snyder + + * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error. + 2003-07-09 Mark Kettenis * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, 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; -- cgit v1.1