aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-20 12:35:44 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-20 12:35:44 +0000
commite4f9082b9ae64a9ed413fb1a4498afa7f4cfcd63 (patch)
treeee382bed9569b24c8e27a83263396dedb0bb7ac6 /monitor.c
parentd95dc32d1336a480941d0a298d2a659466547cda (diff)
added system_reset command
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@935 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index a17e45af3d..3c55c62651 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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);
}
+static void do_system_reset(void)
+{
+ qemu_system_reset_request();
+}
+
static term_cmd_t term_cmds[] = {
{ "help|?", "s?", do_help,
"[cmd]", "show the help" },
@@ -700,6 +705,8 @@ static term_cmd_t term_cmds[] = {
{ "sendkey", "s", do_send_key,
"keys", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1')" },
+ { "system_reset", "", do_system_reset,
+ "", "reset the system" },
{ NULL, NULL, },
};