Changeset 9421 in vbox for trunk/src/VBox/VMM/CPUM.cpp
- Timestamp:
- Jun 5, 2008 1:17:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/CPUM.cpp
r9380 r9421 538 538 539 539 pCtx->cs = 0xf000; 540 pCtx->csHid.u 32Base = UINT32_C(0xffff0000);540 pCtx->csHid.u64Base = UINT64_C(0xffff0000); 541 541 pCtx->csHid.u32Limit = 0x0000ffff; 542 542 pCtx->csHid.Attr.n.u1DescType = 1; /* code/data segment */ … … 831 831 pszPrefix, pCtxCore->eax, pszPrefix, pCtxCore->ebx, pszPrefix, pCtxCore->ecx, pszPrefix, pCtxCore->edx, pszPrefix, pCtxCore->esi, pszPrefix, pCtxCore->edi, 832 832 pszPrefix, pCtxCore->eip, pszPrefix, pCtxCore->esp, pszPrefix, pCtxCore->ebp, pszPrefix, X86_EFL_GET_IOPL(efl), *pszPrefix ? 33 : 31, szEFlags, 833 pszPrefix, (RTSEL)pCtxCore->cs, pCtx->csHid.u 32Base, pCtx->csHid.u32Limit, pCtx->csHid.Attr.u, pszPrefix, pCtx->dr0, pszPrefix, pCtx->dr1,834 pszPrefix, (RTSEL)pCtxCore->ds, pCtx->dsHid.u 32Base, pCtx->dsHid.u32Limit, pCtx->dsHid.Attr.u, pszPrefix, pCtx->dr2, pszPrefix, pCtx->dr3,835 pszPrefix, (RTSEL)pCtxCore->es, pCtx->esHid.u 32Base, pCtx->esHid.u32Limit, pCtx->esHid.Attr.u, pszPrefix, pCtx->dr4, pszPrefix, pCtx->dr5,836 pszPrefix, (RTSEL)pCtxCore->fs, pCtx->fsHid.u 32Base, pCtx->fsHid.u32Limit, pCtx->fsHid.Attr.u, pszPrefix, pCtx->dr6, pszPrefix, pCtx->dr7,837 pszPrefix, (RTSEL)pCtxCore->gs, pCtx->gsHid.u 32Base, pCtx->gsHid.u32Limit, pCtx->gsHid.Attr.u, pszPrefix, pCtx->cr0, pszPrefix, pCtx->cr2,838 pszPrefix, (RTSEL)pCtxCore->ss, pCtx->ssHid.u 32Base, pCtx->ssHid.u32Limit, pCtx->ssHid.Attr.u, pszPrefix, pCtx->cr3, pszPrefix, pCtx->cr4,833 pszPrefix, (RTSEL)pCtxCore->cs, pCtx->csHid.u64Base, pCtx->csHid.u32Limit, pCtx->csHid.Attr.u, pszPrefix, pCtx->dr0, pszPrefix, pCtx->dr1, 834 pszPrefix, (RTSEL)pCtxCore->ds, pCtx->dsHid.u64Base, pCtx->dsHid.u32Limit, pCtx->dsHid.Attr.u, pszPrefix, pCtx->dr2, pszPrefix, pCtx->dr3, 835 pszPrefix, (RTSEL)pCtxCore->es, pCtx->esHid.u64Base, pCtx->esHid.u32Limit, pCtx->esHid.Attr.u, pszPrefix, pCtx->dr4, pszPrefix, pCtx->dr5, 836 pszPrefix, (RTSEL)pCtxCore->fs, pCtx->fsHid.u64Base, pCtx->fsHid.u32Limit, pCtx->fsHid.Attr.u, pszPrefix, pCtx->dr6, pszPrefix, pCtx->dr7, 837 pszPrefix, (RTSEL)pCtxCore->gs, pCtx->gsHid.u64Base, pCtx->gsHid.u32Limit, pCtx->gsHid.Attr.u, pszPrefix, pCtx->cr0, pszPrefix, pCtx->cr2, 838 pszPrefix, (RTSEL)pCtxCore->ss, pCtx->ssHid.u64Base, pCtx->ssHid.u32Limit, pCtx->ssHid.Attr.u, pszPrefix, pCtx->cr3, pszPrefix, pCtx->cr4, 839 839 pszPrefix, pCtx->gdtr.pGdt, pCtx->gdtr.cbGdt, pszPrefix, pCtx->idtr.pIdt, pCtx->idtr.cbIdt, pszPrefix, efl, 840 pszPrefix, (RTSEL)pCtx->ldtr, pCtx->ldtrHid.u 32Base, pCtx->ldtrHid.u32Limit, pCtx->ldtrHid.Attr.u,841 pszPrefix, (RTSEL)pCtx->tr, pCtx->trHid.u 32Base, pCtx->trHid.u32Limit, pCtx->trHid.Attr.u,840 pszPrefix, (RTSEL)pCtx->ldtr, pCtx->ldtrHid.u64Base, pCtx->ldtrHid.u32Limit, pCtx->ldtrHid.Attr.u, 841 pszPrefix, (RTSEL)pCtx->tr, pCtx->trHid.u64Base, pCtx->trHid.u32Limit, pCtx->trHid.Attr.u, 842 842 pszPrefix, pCtx->SysEnter.cs, pCtx->SysEnter.eip, pCtx->SysEnter.esp); 843 843 … … 1803 1803 if (CPUMAreHiddenSelRegsValid(pVM)) 1804 1804 { 1805 State.GCPtrSegBase = pCtx->csHid.u 32Base;1806 State.GCPtrSegEnd = pCtx->csHid.u32Limit + 1 + (RTGCUINTPTR)pCtx->csHid.u 32Base;1805 State.GCPtrSegBase = pCtx->csHid.u64Base; 1806 State.GCPtrSegEnd = pCtx->csHid.u32Limit + 1 + (RTGCUINTPTR)pCtx->csHid.u64Base; 1807 1807 State.cbSegLimit = pCtx->csHid.u32Limit; 1808 1808 pCpu->mode = pCtx->csHid.Attr.n.u1DefBig ? CPUMODE_32BIT : CPUMODE_16BIT;
Note:
See TracChangeset
for help on using the changeset viewer.