2003-06-06 Michal Ludvig <mludvig@suse.cz>

* x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
	to regcache_collect().
This commit is contained in:
Michal Ludvig
2003-06-06 10:04:20 +00:00
parent c16d554dbf
commit 088ce4403f
2 changed files with 7 additions and 2 deletions

View File

@@ -1246,7 +1246,7 @@ x86_64_fill_fxsave (char *fxsave, int regnum)
i387_fill_fxsave (fxsave, regnum);
if (regnum == -1 || regnum == I387_FISEG_REGNUM)
regcache_collect (regnum, fxsave + 12);
regcache_collect (I387_FISEG_REGNUM, fxsave + 12);
if (regnum == -1 || regnum == I387_FOSEG_REGNUM)
regcache_collect (regnum, fxsave + 20);
regcache_collect (I387_FOSEG_REGNUM, fxsave + 20);
}