sim: mips: fix prog_bfd usage
authorMike Frysinger <vapier@gentoo.org>
Sat, 6 Feb 2016 01:16:41 +0000 (20:16 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 6 Feb 2016 01:27:25 +0000 (20:27 -0500)
We do not want to reference the "base" member directly.  We have the
STATE_PROG_BFD macro instead to look up the prog_bfd member.

sim/mips/ChangeLog
sim/mips/configure
sim/mips/configure.ac

index 0370e2b32ed9d19073592d89f8a042bd6c5e01f2..20ba0ff131528479417b3b724740c6929e2e2492 100644 (file)
@@ -1,3 +1,9 @@
+2016-02-05  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac (sim_engine_run): Change sd->base.prog_bfd to
+       STATE_PROG_BFD (sd).
+       * configure: Regenerate.
+
 2016-01-18  Andrew Bennett  <andrew.bennett@imgtec.com>
            Maciej W. Rozycki  <macro@imgtec.com>
 
index 1e61e9da36c2fbc1fb1a188ce535fc7d97c30808..94e75a5d46c101153d36b71dd07987eea6637d92 100755 (executable)
@@ -14063,7 +14063,7 @@ sim_engine_run (SIM_DESC sd,
 
   if (STATE_ARCHITECTURE (sd) == NULL)
     mach = bfd_mach_${sim_multi_default};
-  else if (elf_elfheader (sd->base.prog_bfd)->e_flags
+  else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
           & EF_MIPS_ARCH_ASE_MICROMIPS)
     mach = bfd_mach_mips_micromips;
   else
index 476fc3562f6bc0f87a6adb6ab181f5ce104d8efb..823a00ce4f17cbfef12ae0e09f74054659c5a0fe 100644 (file)
@@ -259,7 +259,7 @@ sim_engine_run (SIM_DESC sd,
 
   if (STATE_ARCHITECTURE (sd) == NULL)
     mach = bfd_mach_${sim_multi_default};
-  else if (elf_elfheader (sd->base.prog_bfd)->e_flags
+  else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
           & EF_MIPS_ARCH_ASE_MICROMIPS)
     mach = bfd_mach_mips_micromips;
   else