]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/cris/ChangeLog
sim: cris: do not pass cpu when writing memory during init
authorMike Frysinger <vapier@gentoo.org>
Sat, 26 Dec 2015 13:13:38 +0000 (08:13 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 26 Dec 2015 13:26:28 +0000 (08:26 -0500)
commit8b494522f9f20e1e1d29089067d51fc141c33558
tree8d62872b3a4f3c244543adc23351f7131f4e4c8d
parent0e9672991e9346d5c2cb9cd33e30fb3e573f88b8
sim: cris: do not pass cpu when writing memory during init

The point of passing down the cpu to core reads/writes is to signal which
cpu is making the access.  For system accesses (such as internal memory
initialization), passing the cpu down doesn't make sense, and in the case
of early init like cris, can cause crashes.  Since the cpu isn't fully set
up at this point, if the core code tries to access some fields (like the
PC reg), it'll crash.  While cris shouldn't be doing this setup here (it
should be in the inferior stage), we'll deal with that later.
sim/cris/ChangeLog
sim/cris/sim-if.c