diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-21 14:29:11 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-25 10:12:54 +0200 |
| commit | 63073574e8d5551dc31a30b59830b886e9f9dbfe (patch) | |
| tree | 80b2435842aa564015a6ac1085bbcf0abde3c13a /target/i386/monitor.c | |
| parent | 6c3b78532ca7b92eeeef756b4c3d8c5cc82ed3ab (diff) | |
| download | focaccia-qemu-63073574e8d5551dc31a30b59830b886e9f9dbfe.tar.gz focaccia-qemu-63073574e8d5551dc31a30b59830b886e9f9dbfe.zip | |
target/i386: Move APIC related code to cpu-apic.c
Move APIC related code split in cpu-sysemu.c and monitor.c to cpu-apic.c. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20240321154838.95771-4-philmd@linaro.org>
Diffstat (limited to 'target/i386/monitor.c')
| -rw-r--r-- | target/i386/monitor.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/target/i386/monitor.c b/target/i386/monitor.c index 3a281dab02..2d766b2637 100644 --- a/target/i386/monitor.c +++ b/target/i386/monitor.c @@ -28,8 +28,6 @@ #include "monitor/hmp-target.h" #include "monitor/hmp.h" #include "qapi/qmp/qdict.h" -#include "sysemu/hw_accel.h" -#include "sysemu/kvm.h" #include "qapi/error.h" #include "qapi/qapi-commands-misc-target.h" #include "qapi/qapi-commands-misc.h" @@ -647,26 +645,3 @@ const MonitorDef *target_monitor_defs(void) { return monitor_defs; } - -void hmp_info_local_apic(Monitor *mon, const QDict *qdict) -{ - CPUState *cs; - - if (qdict_haskey(qdict, "apic-id")) { - int id = qdict_get_try_int(qdict, "apic-id", 0); - - cs = cpu_by_arch_id(id); - if (cs) { - cpu_synchronize_state(cs); - } - } else { - cs = mon_get_cpu(mon); - } - - - if (!cs) { - monitor_printf(mon, "No CPU available\n"); - return; - } - x86_cpu_dump_local_apic_state(cs, CPU_DUMP_FPU); -} |