qemu-e2k/linux-user/sparc
Markus Armbruster 90c84c5600 qom/cpu: Simplify how CPUClass:cpu_dump_state() prints
CPUClass method dump_statistics() takes an fprintf()-like callback and
a FILE * to pass to it.  Most callers pass fprintf() and stderr.
log_cpu_state() passes fprintf() and qemu_log_file.
hmp_info_registers() passes monitor_fprintf() and the current monitor
cast to FILE *.  monitor_fprintf() casts it right back, and is
otherwise identical to monitor_printf().

The callback gets passed around a lot, which is tiresome.  The
type-punning around monitor_fprintf() is ugly.

Drop the callback, and call qemu_fprintf() instead.  Also gets rid of
the type-punning, since qemu_fprintf() takes NULL instead of the
current monitor cast to FILE *.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190417191805.28198-15-armbru@redhat.com>
2019-04-18 22:18:59 +02:00
..
cpu_loop.c qom/cpu: Simplify how CPUClass:cpu_dump_state() prints 2019-04-18 22:18:59 +02:00
signal.c linux-user/sparc/signal.c: Remove dead code 2018-11-15 13:06:40 +00:00
sockbits.h linux-user: copy sparc/sockbits.h definitions from linux 2018-05-25 10:10:55 +02:00
syscall_nr.h linux-user: update sparc/syscall_nr.h to linux header 4.16 2018-05-11 19:05:12 +02:00
target_cpu.h linux-user: move get_sp_from_cpustate() to target_cpu.h 2018-06-04 01:30:44 +02:00
target_elf.h linux-user: Move CPU type name selection to a function 2018-02-25 17:27:41 +01:00
target_errno.h linux-user: add sparc/sparc64 specific errno 2018-05-11 19:05:31 +02:00
target_fcntl.h linux-user: move sparc/sparc64 fcntl definitions to sparc/target_fcntl.h 2018-06-04 01:30:44 +02:00
target_signal.h linux-user: move sparc signal definitions to sparc/target_signal.h 2018-06-04 01:30:44 +02:00
target_structs.h
target_syscall.h linux-user: fix UNAME_MACHINE for sparc/sparc64 2018-05-11 19:05:38 +02:00
termbits.h linux-user: Implement ioctl cmd TIOCGPTPEER 2018-02-18 18:52:32 +01:00