sim: use bfd_vma when reading start addr from bfd info
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 Nov 2022 18:13:26 +0000 (01:13 +0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 00:29:10 +0000 (19:29 -0500)
commit20fea6638f1785b241c39454dcb707234a675524
tree9a192d2692268726fb466753904ed6eea4443855
parent7dc3ab91259b96e87f7dbc423b9d5aeaf4e447ed
sim: use bfd_vma when reading start addr from bfd info

Since SIM_ADDR is always 32-bit, it might truncate the address with
64-bit ELFs.  Since we load that addr from the bfd, use the bfd_vma
type which matches the bfd_get_start_address API.
sim/avr/interp.c
sim/bfin/interp.c
sim/bpf/sim-if.c
sim/cris/sim-if.c
sim/frv/sim-if.c
sim/iq2000/sim-if.c
sim/lm32/sim-if.c
sim/m32r/sim-if.c
sim/or1k/sim-if.c
sim/pru/interp.c
sim/riscv/interp.c