diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-04-17 21:17:59 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-04-18 22:18:59 +0200 |
commit | d3fd9e4b79f77afea17213a7b32ba9eda7fc59c1 (patch) | |
tree | 484a091f63a6e5fe46c87224efb795f50e8509e7 /target/i386/cpu.h | |
parent | fad866daa85c65267fa44de40f10cc1ee904ae1a (diff) |
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>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r-- | target/i386/cpu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h index b39327dcb7..139fe30960 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -1924,8 +1924,7 @@ void enable_compat_apic_id_mode(void); #define APIC_DEFAULT_ADDRESS 0xfee00000 #define APIC_SPACE_SIZE 0x100000 -void x86_cpu_dump_local_apic_state(CPUState *cs, FILE *f, - fprintf_function cpu_fprintf, int flags); +void x86_cpu_dump_local_apic_state(CPUState *cs, int flags); /* cpu.c */ bool cpu_is_bsp(X86CPU *cpu); |