diff options
author | Kevin Wolf | 2020-11-13 12:43:24 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-11-13 13:45:35 +0100 |
commit | 2fc5d01bb43049851a95c8a66df7ee33e3489b54 (patch) | |
tree | 1e74f5edf47a4672ba529ae05f536a1abf0aa5fd /target/i386 | |
parent | Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20201112' into staging (diff) | |
download | qemu-2fc5d01bb43049851a95c8a66df7ee33e3489b54.tar.gz qemu-2fc5d01bb43049851a95c8a66df7ee33e3489b54.tar.xz qemu-2fc5d01bb43049851a95c8a66df7ee33e3489b54.zip |
hmp: Pass monitor to mon_get_cpu()
mon_get_cpu() is indirectly called monitor_parse_arguments() where
the current monitor isn't set yet. Instead of using monitor_cur(),
explicitly pass the Monitor pointer to the function.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201113114326.97663-2-kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/monitor.c b/target/i386/monitor.c index 7abae3c8df..5ca3cab4ec 100644 --- a/target/i386/monitor.c +++ b/target/i386/monitor.c @@ -656,7 +656,7 @@ void hmp_info_local_apic(Monitor *mon, const QDict *qdict) int id = qdict_get_try_int(qdict, "apic-id", 0); cs = cpu_by_arch_id(id); } else { - cs = mon_get_cpu(); + cs = mon_get_cpu(mon); } |