]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: cris: clean up printf & abort usage a bit
authorMike Frysinger <vapier@gentoo.org>
Sun, 20 Jun 2021 16:32:27 +0000 (12:32 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 21 Jun 2021 03:45:24 +0000 (23:45 -0400)
commit1b40d569a861eb8b290faaad05ae8a6152e0b2ee
tree3747a4952c1ce3455fa9d6dd7ee5894b0d84cde5
parente27c0d7ae3b154b9e753646c6d1400b7c329d0ce
sim: cris: clean up printf & abort usage a bit

Inline the stats printf calls to avoid compiler warnings about
non-literal format strings.  This in turn highlights bad type
sizes being passed in, so fix the strings to use the right size
type.  This in turn highlights the rest of the func using casts
rather than the right type directly, so adjust all of those.

Finally, replace a few abort+sim_engine_halt calls with the
common sim_engine_abort.  This provides good output while still
aborting as we want.
sim/cris/ChangeLog
sim/cris/traps.c