xemu/target/hppa
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-qom.h target-hppa: Add framework and enable compilation 2017-01-23 09:52:40 -08:00
cpu.c target: Simplify how the TARGET_cpu_list() print 2019-04-18 22:18:59 +02:00
cpu.h qom/cpu: Simplify how CPUClass:cpu_dump_state() prints 2019-04-18 22:18:59 +02:00
gdbstub.c target/hppa: add TLB protection id check 2019-03-12 09:13:43 -07:00
helper.c qom/cpu: Simplify how CPUClass:cpu_dump_state() prints 2019-04-18 22:18:59 +02:00
helper.h target/hppa: add TLB protection id check 2019-03-12 09:13:43 -07:00
insns.decode target/hppa: ignore DIAG opcode 2019-03-12 09:13:43 -07:00
int_helper.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
machine.c vmstate: constify VMStateField 2018-11-27 15:35:15 +01:00
Makefile.objs target/hppa: Begin using scripts/decodetree.py 2019-02-12 08:48:27 -08:00
mem_helper.c target/hppa: add TLB protection id check 2019-03-12 09:13:43 -07:00
op_helper.c target/hppa: remove PSW I/R/Q bit check 2019-03-12 09:13:43 -07:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
translate.c target/hppa: Avoid squishing DISAS_IAQ_N_STALE_EXIT 2019-03-15 10:09:55 -07:00