qemu/target
Markus Armbruster fad866daa8 target: Clean up how the dump_mmu() print
The various dump_mmu() take an fprintf()-like callback and a FILE * to
pass to it, and so do their helper functions.  Passing around callback
and argument is rather tiresome.

Most dump_mmu() are called only by the target's hmp_info_tlb().  These
all pass monitor_printf() cast to fprintf_function and the current
monitor cast to FILE *.

SPARC's dump_mmu() gets also called from target/sparc/ldst_helper.c a
few times #ifdef DEBUG_MMU.  These calls pass fprintf() and stdout.

The type-punning is technically undefined behaviour, but works in
practice.  Clean up: drop the callback, and call qemu_printf()
instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190417191805.28198-11-armbru@redhat.com>
2019-04-18 22:18:59 +02:00
..
alpha target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
arm target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
cris target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
hppa target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
i386 target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
lm32 target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
m68k target: Clean up how the dump_mmu() print 2019-04-18 22:18:59 +02:00
microblaze target/microblaze: Add props enabling exceptions on failed bus accesses 2019-01-22 03:17:34 -08:00
mips target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
moxie target/moxie: Fix LGPL information in the file headers 2019-02-06 15:46:11 +01:00
nios2 target: Clean up how the dump_mmu() print 2019-04-18 22:18:59 +02:00
openrisc target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
ppc target: Clean up how the dump_mmu() print 2019-04-18 22:18:59 +02:00
riscv target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
s390x target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
sh4 target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
sparc target: Clean up how the dump_mmu() print 2019-04-18 22:18:59 +02:00
tilegx avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
tricore target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
unicore32 target/unicore32: remove tlb_flush from uc32_init_fn 2018-10-18 18:58:10 -07:00
xtensa target: Clean up how the dump_mmu() print 2019-04-18 22:18:59 +02:00