Changeset 2890 in vbox
- Timestamp:
- May 28, 2007 11:49:44 AM (18 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r2422 r2890 454 454 455 455 /* VMM args */ 456 static const REMPARMDESC g_aArgsCPUMGetGuestCpl[] = 457 { 458 { REMPARMDESC_FLAGS_INT, sizeof(PVM) }, 459 { REMPARMDESC_FLAGS_INT, sizeof(PCPUMCTXORE) }, 460 }; 461 456 462 static const REMPARMDESC g_aArgsCPUMGetGuestCpuId[] = 457 463 { … … 938 944 { "CPUMAreHiddenSelRegsValid", (void *)(uintptr_t)&CPUMAreHiddenSelRegsValid, &g_aArgsVM[0], ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_INT, sizeof(bool), NULL }, 939 945 { "CPUMGetAndClearChangedFlagsREM", (void *)(uintptr_t)&CPUMGetAndClearChangedFlagsREM, &g_aArgsVM[0], ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_INT, sizeof(unsigned), NULL }, 946 { "CPUMGetGuestCPL", (void *)(uintptr_t)&CPUMGetGuestCPL, &g_aArgsCPUMGetGuestCpl[0], ELEMENTS(g_aArgsCPUMGetGuestCpl), REMFNDESC_FLAGS_RET_INT, sizeof(unsigned), NULL }, 940 947 { "CPUMGetGuestCpuId", (void *)(uintptr_t)&CPUMGetGuestCpuId, &g_aArgsCPUMGetGuestCpuId[0], ELEMENTS(g_aArgsCPUMGetGuestCpuId), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 941 948 { "CPUMGetGuestEAX", (void *)(uintptr_t)&CPUMGetGuestEAX, &g_aArgsVM[0], ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_INT, sizeof(uint32_t), NULL }, -
trunk/src/recompiler/VBoxRecompiler.c
r2422 r2890 1701 1701 pVM->rem.s.Env.hflags &= ~HF_HALTED_MASK; 1702 1702 1703 /* Set current CPL */ 1704 cpu_x86_set_cpl(&pVM->rem.s.Env, CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx))); 1705 1703 1706 /* 1704 1707 * Replay invlpg? … … 1831 1834 cpu_x86_load_seg_cache(&pVM->rem.s.Env, R_FS, pCtx->fs, pCtx->fsHid.u32Base, pCtx->fsHid.u32Limit, (pCtx->fsHid.Attr.u << 8) & 0xFFFFFF); 1832 1835 cpu_x86_load_seg_cache(&pVM->rem.s.Env, R_GS, pCtx->gs, pCtx->gsHid.u32Base, pCtx->gsHid.u32Limit, (pCtx->gsHid.Attr.u << 8) & 0xFFFFFF); 1833 1834 /* Set current CPL. */1835 if (pCtx->eflags.Bits.u1VM == 1)1836 cpu_x86_set_cpl(&pVM->rem.s.Env, 3);1837 else1838 cpu_x86_set_cpl(&pVM->rem.s.Env, pCtx->ss & 3);1839 1836 } 1840 1837 else … … 1845 1842 Log2(("REMR3State: SS changed from %04x to %04x!\n", pVM->rem.s.Env.segs[R_SS].selector, pCtx->ss)); 1846 1843 1847 cpu_x86_set_cpl(&pVM->rem.s.Env, (pCtx->eflags.Bits.u1VM) ? 3 : (pCtx->ss & 3));1848 1844 sync_seg(&pVM->rem.s.Env, R_SS, pCtx->ss); 1849 1845 #ifdef VBOX_WITH_STATISTICS
Note:
See TracChangeset
for help on using the changeset viewer.