diff options
author | Kevin Wolf | 2020-10-05 17:58:42 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-10-09 07:08:19 +0200 |
commit | dcba65f824817596e817a43f83ef83bac9099e76 (patch) | |
tree | 66c046492cf9efa1db2baa4c8a25dc295b6cc8ee /include/monitor/monitor.h | |
parent | Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20201008-... (diff) | |
download | qemu-dcba65f824817596e817a43f83ef83bac9099e76.tar.gz qemu-dcba65f824817596e817a43f83ef83bac9099e76.tar.xz qemu-dcba65f824817596e817a43f83ef83bac9099e76.zip |
monitor: Add Monitor parameter to monitor_set_cpu()
Most callers actually don't have to rely on cur_mon, but already know
for which monitor they call monitor_set_cpu().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20201005155855.256490-2-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/monitor/monitor.h')
-rw-r--r-- | include/monitor/monitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index c0170773d4..04f472ac4f 100644 --- a/include/monitor/monitor.h +++ b/include/monitor/monitor.h @@ -33,7 +33,7 @@ int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) GCC_FMT_ATTR(2, 0); int monitor_printf(Monitor *mon, const char *fmt, ...) GCC_FMT_ATTR(2, 3); void monitor_flush(Monitor *mon); -int monitor_set_cpu(int cpu_index); +int monitor_set_cpu(Monitor *mon, int cpu_index); int monitor_get_cpu_index(void); void monitor_read_command(MonitorHMP *mon, int show_prompt); |