diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-24 10:53:44 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-27 11:48:46 -0200 |
commit | 99b7796f601cd275b16b3e7122874953ed1a0b1f (patch) | |
tree | 50f5ed3dbd1221475d52c5dd001f95afd0c1ca45 /monitor.c | |
parent | b025c8b4ab108a5a4bb4ef1e2500fc63214e2193 (diff) |
Monitor: Introduce monitor_get_cpu_index()
Returns 'cur_mons's CPU index. A future commit will use it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -794,6 +794,11 @@ static CPUState *mon_get_cpu(void) return cur_mon->mon_cpu; } +int monitor_get_cpu_index(void) +{ + return mon_get_cpu()->cpu_index; +} + static void do_info_registers(Monitor *mon) { CPUState *env; |