sim: mips: fix prog_bfd usage
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.
This commit is contained in:
parent
bd8d853f77
commit
1554f75841
3 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
2
sim/mips/configure
vendored
2
sim/mips/configure
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue