sim: ppc: clean up various warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 15 May 2021 14:48:02 +0000 (10:48 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 15 May 2021 15:00:00 +0000 (11:00 -0400)
commitbe2bc30f9cb3e8dd8b566db551a8ce3cc305e015
treeb956da9b71b744d3600ee4a1a7817c4f92f3c2ba
parentc5a2e0123b7241be6a2022f1acb8fa700dda628a
sim: ppc: clean up various warnings

A random grab bag of minor fixes to enable -Werror for this port.

Cast address vars to long when the format was using %l.
Use %zu with sizeof operations.
Add const to a bunch of strings.
Trim unused variables.
Fix sizeof call to calculate target storage and not the pointer itself.
22 files changed:
sim/ppc/ChangeLog
sim/ppc/Makefile.in
sim/ppc/configure
sim/ppc/configure.ac
sim/ppc/device.c
sim/ppc/emul_chirp.c
sim/ppc/hw_glue.c
sim/ppc/hw_ide.c
sim/ppc/hw_init.c
sim/ppc/hw_phb.c
sim/ppc/hw_shm.c
sim/ppc/igen.c
sim/ppc/interrupts.c
sim/ppc/ld-insn.c
sim/ppc/main.c
sim/ppc/options.c
sim/ppc/ppc-instructions
sim/ppc/psim.c
sim/ppc/psim.h
sim/ppc/tree.c
sim/ppc/vm.c
sim/ppc/vm_n.h