* i386-tdep.c (i386_stab_reg_to_regnum): Return correct register

numbers for MMX registers.
This commit is contained in:
Mark Kettenis 2002-08-13 21:54:18 +00:00
parent eb086b5940
commit 7d12f766fa
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-08-13 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
* i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
numbers for MMX registers.
2002-08-13 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c (i386_gdbarch_init): Use

View File

@ -113,9 +113,7 @@ i386_stab_reg_to_regnum (int reg)
else if (reg >= 29 && reg <= 36)
{
/* MMX registers. */
/* FIXME: kettenis/2001-07-28: Should we have the MMX registers
as pseudo-registers? */
return reg - 29 + FP0_REGNUM;
return reg - 29 + MM0_REGNUM;
}
/* This will hopefully provoke a warning. */