+#ifdef HAVE_SYS_PROCFS_H
+/* These two calls are used by the core-regset.c code for
+ reading ELF core files. */
+void
+supply_gregset (struct regcache *regcache, const gdb_gregset_t *gregs)
+{
+ int i;
+ for (i = 0; i < I386_NUM_GREGS; i++)
+ regcache_raw_supply (regcache, i, CREG_ADDR (gregs, i));