monitor: Convert do_stop() to QObject

Patchworks-ID: 35343
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Luiz Capitulino 2009-10-07 13:41:57 -03:00 committed by Anthony Liguori
parent b223f35f4e
commit e0c97bdef8
2 changed files with 6 additions and 2 deletions

View File

@ -599,7 +599,10 @@ static void do_singlestep(Monitor *mon, const QDict *qdict)
}
}
static void do_stop(Monitor *mon, const QDict *qdict)
/**
* do_stop(): Stop VM execution
*/
static void do_stop(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
vm_stop(EXCP_INTERRUPT);
}

View File

@ -287,7 +287,8 @@ ETEXI
.args_type = "",
.params = "",
.help = "stop emulation",
.mhandler.cmd = do_stop,
.user_print = monitor_user_noop,
.mhandler.cmd_new = do_stop,
},
STEXI