added system_reset command
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@935 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d95dc32d13
commit
e4f9082b9a
|
@ -660,6 +660,11 @@ static void do_ioport_read(int count, int format, int size, int addr, int has_in
|
||||||
suffix, addr, size * 2, val);
|
suffix, addr, size * 2, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void do_system_reset(void)
|
||||||
|
{
|
||||||
|
qemu_system_reset_request();
|
||||||
|
}
|
||||||
|
|
||||||
static term_cmd_t term_cmds[] = {
|
static term_cmd_t term_cmds[] = {
|
||||||
{ "help|?", "s?", do_help,
|
{ "help|?", "s?", do_help,
|
||||||
"[cmd]", "show the help" },
|
"[cmd]", "show the help" },
|
||||||
|
@ -700,6 +705,8 @@ static term_cmd_t term_cmds[] = {
|
||||||
|
|
||||||
{ "sendkey", "s", do_send_key,
|
{ "sendkey", "s", do_send_key,
|
||||||
"keys", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1')" },
|
"keys", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1')" },
|
||||||
|
{ "system_reset", "", do_system_reset,
|
||||||
|
"", "reset the system" },
|
||||||
{ NULL, NULL, },
|
{ NULL, NULL, },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue