diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-15 10:48:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-15 11:00:00 -0400 |
commit | be2bc30f9cb3e8dd8b566db551a8ce3cc305e015 (patch) | |
tree | b956da9b71b744d3600ee4a1a7817c4f92f3c2ba /sim/ppc/vm.c | |
parent | c5a2e0123b7241be6a2022f1acb8fa700dda628a (diff) | |
download | fsf-binutils-gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.zip fsf-binutils-gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.gz fsf-binutils-gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.bz2 |
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.
Diffstat (limited to 'sim/ppc/vm.c')
-rw-r--r-- | sim/ppc/vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/vm.c b/sim/ppc/vm.c index 8cf4e8f..9562fb6 100644 --- a/sim/ppc/vm.c +++ b/sim/ppc/vm.c @@ -627,9 +627,9 @@ om_virtual_to_real(om_map *map, TRACE(trace_vm, ("ea=0x%lx - htab search %d - htab=0x%lx hash=0x%lx mask=0x%lx pteg=0x%lx\n", (long)ea, current_hash, - map->real_address_of_page_table, - page_hash, - map->page_table_hash_mask, + (long)map->real_address_of_page_table, + (long)page_hash, + (long)map->page_table_hash_mask, (long)real_address_of_pte_group)); for (real_address_of_pte_0 = real_address_of_pte_group; real_address_of_pte_0 < (real_address_of_pte_group |