]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
monitor: Split mon_get_cpu fn to remove ENV_GET_CPU
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Sun, 24 May 2015 21:20:40 +0000 (14:20 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 22 Jun 2015 15:40:00 +0000 (17:40 +0200)
commit5bcda5f7349da01aded719b595f32ce2b9d396db
tree568262199362ea69d6f0998f60359c6c8e5f5b12
parente549d2aaeba1cfac207c9a9675cc203e6372a22e
monitor: Split mon_get_cpu fn to remove ENV_GET_CPU

The monitor currently has one helper, mon_get_cpu() which will return
an env pointer. The target specific users of this API want an env, but
all the target agnostic users really just want the cpu pointer. These
users then need to use the target-specifically defined ENV_GET_CPU to
navigate back up to the CPU from the ENV. Split the API for the two
uses cases to remove all need for ENV_GET_CPU.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
monitor.c