1 /* Target-dependent code for the i387.
2 Copyright 2000, 2001 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
24 /* Fill register REGNUM in GDB's register array with the appropriate
25 value from *FSAVE. This function masks off any of the reserved
28 extern void i387_supply_register (int regnum, char *fsave);
30 /* Fill GDB's register array with the floating-point register values
31 in *FSAVE. This function masks off any of the reserved
34 extern void i387_supply_fsave (char *fsave);
36 /* Fill register REGNUM (if it is a floating-point register) in *FSAVE
37 with the value in GDB's register array. If REGNUM is -1, do this
38 for all registers. This function doesn't touch any of the reserved
41 extern void i387_fill_fsave (char *fsave, int regnum);
43 /* Fill GDB's register array with the floating-point and SSE register
44 values in *FXSAVE. This function masks off any of the reserved
47 extern void i387_supply_fxsave (char *fxsave);
49 /* Fill register REGNUM (if it is a floating-point or SSE register) in
50 *FXSAVE with the value in GDB's register array. If REGNUM is -1, do
51 this for all registers. This function doesn't touch any of the
52 reserved bits in *FXSAVE. */
54 extern void i387_fill_fxsave (char *fxsave, int regnum);
56 #endif /* i387-tdep.h */