Commit e4f9082b9ae64a9ed413fb1a4498afa7f4cfcd63

Authored by bellard
1 parent d95dc32d

added system_reset command


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@935 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 0 deletions
monitor.c
... ... @@ -660,6 +660,11 @@ static void do_ioport_read(int count, int format, int size, int addr, int has_in
660 660 suffix, addr, size * 2, val);
661 661 }
662 662  
  663 +static void do_system_reset(void)
  664 +{
  665 + qemu_system_reset_request();
  666 +}
  667 +
663 668 static term_cmd_t term_cmds[] = {
664 669 { "help|?", "s?", do_help,
665 670 "[cmd]", "show the help" },
... ... @@ -700,6 +705,8 @@ static term_cmd_t term_cmds[] = {
700 705  
701 706 { "sendkey", "s", do_send_key,
702 707 "keys", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1')" },
  708 + { "system_reset", "", do_system_reset,
  709 + "", "reset the system" },
703 710 { NULL, NULL, },
704 711 };
705 712  
... ...