xemu/target
Markus Armbruster 0442428a89 target: Simplify how the TARGET_cpu_list() print
The various TARGET_cpu_list() take an fprintf()-like callback and a
FILE * to pass to it.  Their callers (vl.c's main() via list_cpus(),
bsd-user/main.c's main(), linux-user/main.c's main()) all pass
fprintf() and stdout.  Thus, the flexibility provided by the (rather
tiresome) indirection isn't actually used.

Drop the callback, and call qemu_printf() instead.

Calling printf() would also work, but would make the code unsuitable
for monitor context without making it simpler.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190417191805.28198-10-armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@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: Simplify how the TARGET_cpu_list() 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 tcg-next queue 2018-06-04 11:28:31 +01:00
openrisc target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
ppc target: Simplify how the TARGET_cpu_list() 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: Simplify how the TARGET_cpu_list() 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: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00