aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386v4-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386v4-nat.c')
-rw-r--r--gdb/i386v4-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386v4-nat.c b/gdb/i386v4-nat.c
index 695207b..e3bd01c 100644
--- a/gdb/i386v4-nat.c
+++ b/gdb/i386v4-nat.c
@@ -139,7 +139,7 @@ fill_gregset (const struct regcache *regcache,
void
supply_fpregset (struct regcache *regcache, const fpregset_t *fpregsetp)
{
- if (FP0_REGNUM == 0)
+ if (gdbarch_fp0_regnum (current_gdbarch) == 0)
return;
i387_supply_fsave (regcache, -1, fpregsetp);
@@ -153,7 +153,7 @@ void
fill_fpregset (const struct regcache *regcache,
fpregset_t *fpregsetp, int regno)
{
- if (FP0_REGNUM == 0)
+ if (gdbarch_fp0_regnum (current_gdbarch) == 0)
return;
i387_collect_fsave (regcache, regno, fpregsetp);