Changeset 4206 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 17, 2007 8:11:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstAnimate.cpp
r4197 r4206 24 24 #include <VBox/cpum.h> 25 25 #include <VBox/cfgm.h> 26 #include <VBox/em.h> 26 27 #include <VBox/pgm.h> 27 28 #include <VBox/rem.h> … … 599 600 " [-s <script file>]\n" 600 601 " [-m <memory size>]\n" 602 " [-w <warp drive percent>]\n" 601 603 " [-p]\n" 602 604 "\n" … … 622 624 623 625 bool fPowerOn = false; 626 uint32_t u32WarpDrive = 100; /* % */ 624 627 uint64_t cbMem = ~0ULL; 625 628 const char *pszSavedState = NULL; … … 649 652 case 'c': 650 653 case 'm': 654 case 'w': 651 655 case 'z': 652 656 if (i + 1 < argc) … … 713 717 break; 714 718 719 case 'w': 720 { 721 int rc = RTStrToUInt32Ex(argv[++i], NULL, 0, &u32WarpDrive); 722 if (VBOX_FAILURE(rc)) 723 { 724 RTPrintf("tstAnimate: Syntax error: Invalid number given to -w.\n"); 725 return 1; 726 } 727 break; 728 } 729 715 730 case 'h': 716 731 case 'H': … … 835 850 { 836 851 if (fPowerOn) 837 { 852 { 853 /* 854 * Adjust warpspeed? 855 */ 856 if (u32WarpDrive != 100) 857 { 858 rc = TMVirtualSetWarpDrive(pVM, u32WarpDrive); 859 if (VBOX_FAILURE(rc)) 860 RTPrintf("warning: TMVirtualSetWarpDrive(,%u) -> %Vrc\n", u32WarpDrive, rc); 861 } 862 838 863 /* 839 864 * Start the thing with single stepping and stuff enabled. 865 * (Try make sure we don't execute anything in raw mode.) 840 866 */ 841 867 RTPrintf("info: powering on the VM...\n"); … … 844 870 if (VBOX_SUCCESS(rc)) 845 871 { 846 DBGFR3InfoLog(pVM, "cpumguest", "verbose"); 872 rc = VMR3ReqCall(pVM, &pReq1, RT_INDEFINITE_WAIT, (PFNRT)EMR3RawSetMode, 2, pVM, EMRAW_NONE); 873 AssertReleaseRC(rc); 874 VMR3ReqFree(pReq1); 875 876 DBGFR3Info(pVM, "cpumguest", "verbose", NULL); 847 877 if (fPowerOn) 848 878 rc = VMR3PowerOn(pVM); … … 866 896 */ 867 897 RTPrintf("info: entering debugger...\n"); 868 DBGFR3Info Log(pVM, "cpumguest", "verbose");898 DBGFR3Info(pVM, "cpumguest", "verbose", NULL); 869 899 signal(SIGINT, SigInterrupt); 870 900 while (!g_fSignaled)
Note:
See TracChangeset
for help on using the changeset viewer.