target/i386: Simplify how x86_cpu_dump_local_apic_state() prints
commitd3fd9e4b79f77afea17213a7b32ba9eda7fc59c1
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Apr 2019 19:17:59 +0000 (17 21:17 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Apr 2019 20:18:59 +0000 (18 22:18 +0200)
tree484a091f63a6e5fe46c87224efb795f50e8509e7
parentfad866daa85c65267fa44de40f10cc1ee904ae1a
target/i386: Simplify how x86_cpu_dump_local_apic_state() prints

x86_cpu_dump_local_apic_state() takes an fprintf()-like callback and a
FILE * to pass to it, and so do its helper functions.

Its only caller hmp_info_local_apic() 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-12-armbru@redhat.com>
target/i386/cpu.h
target/i386/helper.c
target/i386/monitor.c