]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/h8300/compile.c
sim: switch sim_{read,write} APIs to 64-bit all the time [PR sim/7504]
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 Nov 2022 18:15:32 +0000 (01:15 +0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 00:29:24 +0000 (19:29 -0500)
commit63fd5b5ddad9c715531168d5863853017a1f02d3
tree0ede0e8d44166303d4b451dfc30e096e82e5d505
parent20fea6638f1785b241c39454dcb707234a675524
sim: switch sim_{read,write} APIs to 64-bit all the time [PR sim/7504]

We've been using SIM_ADDR which has always been 32-bit.  This means
the upper 32-bit address range in 64-bit sims is inaccessible.  Use
64-bit addresses all the time since we want the APIs to be stable
regardless of the active arch backend (which can be 32 or 64-bit).

The length is also 64-bit because it's completely feasible to have
a program that is larger than 4 GiB in size/image/runtime.  Forcing
the caller to manually chunk those accesses up into 4 GiB at a time
doesn't seem useful to anyone.

Bug: https://sourceware.org/PR7504
14 files changed:
include/sim/sim.h
sim/arm/wrapper.c
sim/avr/interp.c
sim/common/sim-hrw.c
sim/common/sim-utils.h
sim/cris/sim-if.c
sim/d10v/interp.c
sim/erc32/interf.c
sim/h8300/compile.c
sim/m32c/gdb-if.c
sim/ppc/sim_calls.c
sim/rl78/gdb-if.c
sim/rx/gdb-if.c
sim/sh/interp.c