]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim/ppc: fixes for arguments to printf style functions
authorAndrew Burgess <aburgess@redhat.com>
Tue, 11 Oct 2022 14:02:08 +0000 (15:02 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 12 Oct 2022 09:37:00 +0000 (10:37 +0100)
commit182421c9d2eea8c4877d983a2124e591f0aca710
treee5fa104849987288045a1c6ec89bab2cab0f946f
parent33fb3d6f140b03062b6bce2065a44b3c8a42ba62
sim/ppc: fixes for arguments to printf style functions

After the recent series of fixes to mark more functions in the
simulator with ATTRIBUTE_PRINTF, there were some build failures in the
ppc sim due, in some cases, to bugs with the arguments being passed,
and in other cases, the issues were (maybe) less serious, with
arguments being the wrong size, or type, for the printf format being
used.

This commit fixes all of the issues that I ran into.

In each case I selected the easiest solution to the problem, which is
usually just casting the argument to the correct type.  If anyone
later on thinks the print format should change, please feel free to do
that.  What we have here should keep the simulator basically working
as it does currently, which is my goal with this commit.
sim/ppc/corefile.c
sim/ppc/emul_bugapi.c
sim/ppc/emul_chirp.c
sim/ppc/interrupts.c
sim/ppc/psim.c