Changeset 17695 in vbox
- Timestamp:
- Mar 11, 2009 1:48:09 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44197
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r17531 r17695 409 409 case OP_RDTSC: return "Rdtsc"; 410 410 case OP_STI: return "Sti"; 411 case OP_CLI: return "Cli"; 411 412 case OP_XADD: return "XAdd"; 412 413 case OP_HLT: return "Hlt"; … … 2434 2435 } 2435 2436 2437 #ifdef IN_RING0 2438 /* Only for the VT-x real-mode emulation case. */ 2439 AssertReturn(CPUMIsGuestInRealMode(pVM), VERR_EM_INTERPRETER); 2440 CPUMSetGuestLDTR(pVM, sel); 2441 return VINF_SUCCESS; 2442 #else 2436 2443 if (sel == 0) 2437 2444 { … … 2444 2451 //still feeling lazy 2445 2452 return VERR_EM_INTERPRETER; 2453 #endif 2446 2454 } 2447 2455 … … 2459 2467 2460 2468 /* Only for the VT-x real-mode emulation case. */ 2461 if (!CPUMIsGuestInRealMode(pVM)) 2462 return VERR_EM_INTERPRETER; 2469 AssertReturn(CPUMIsGuestInRealMode(pVM), VERR_EM_INTERPRETER); 2463 2470 2464 2471 int rc = DISQueryParamVal(pRegFrame, pCpu, &pCpu->param1, ¶m1, PARAM_SOURCE); … … 3182 3189 INTERPRET_CASE(OP_MOV_CR,MovCRx); 3183 3190 INTERPRET_CASE(OP_MOV_DR,MovDRx); 3184 INTERPRET_CASE(OP_LLDT,LLdt);3185 3191 #ifdef IN_RING0 3186 3192 INTERPRET_CASE_EX_DUAL_PARAM2(OP_LIDT, LIdt, LIGdt); 3187 3193 INTERPRET_CASE_EX_DUAL_PARAM2(OP_LGDT, LGdt, LIGdt); 3188 3194 #endif 3195 INTERPRET_CASE(OP_LLDT,LLdt); 3189 3196 INTERPRET_CASE(OP_LMSW,Lmsw); 3190 3197 #ifdef EM_EMULATE_SMSW
Note:
See TracChangeset
for help on using the changeset viewer.