mirror_qemu/target
Markus Armbruster 11cb6c152a qom/cpu: Simplify how CPUClass::dump_statistics() prints
CPUClass method dump_statistics() takes an fprintf()-like callback and
a FILE * to pass to it.

Its only caller hmp_info_cpustats() (via cpu_dump_statistics()) passes
monitor_fprintf() and the current monitor cast to FILE *.
monitor_fprintf() casts it right back, and is otherwise identical to
monitor_printf().  The type-punning is ugly.

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-13-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/i386: Simplify how x86_cpu_dump_local_apic_state() prints 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 qom/cpu: Simplify how CPUClass::dump_statistics() prints 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