VirtualBox

Changeset 42486 in vbox


Ignore:
Timestamp:
Jul 31, 2012 4:14:51 PM (13 years ago)
Author:
vboxsync
Message:

CPUMR3ResetCpu: Set the accessed bit in the segment registers. Hope this is right and good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r42475 r42486  
    14931493    pCtx->cs.Attr.n.u1DescType      = 1; /* code/data segment */
    14941494    pCtx->cs.Attr.n.u1Present       = 1;
    1495     pCtx->cs.Attr.n.u4Type          = X86_SEL_TYPE_READ | X86_SEL_TYPE_CODE;
     1495    pCtx->cs.Attr.n.u4Type          = X86_SEL_TYPE_ER_ACC;
    14961496
    14971497    pCtx->ds.fFlags                 = CPUMSELREG_FLAGS_VALID;
     
    14991499    pCtx->ds.Attr.n.u1DescType      = 1; /* code/data segment */
    15001500    pCtx->ds.Attr.n.u1Present       = 1;
    1501     pCtx->ds.Attr.n.u4Type          = X86_SEL_TYPE_RW;
     1501    pCtx->ds.Attr.n.u4Type          = X86_SEL_TYPE_RW_ACC;
    15021502
    15031503    pCtx->es.fFlags                 = CPUMSELREG_FLAGS_VALID;
     
    15051505    pCtx->es.Attr.n.u1DescType      = 1; /* code/data segment */
    15061506    pCtx->es.Attr.n.u1Present       = 1;
    1507     pCtx->es.Attr.n.u4Type          = X86_SEL_TYPE_RW;
     1507    pCtx->es.Attr.n.u4Type          = X86_SEL_TYPE_RW_ACC;
    15081508
    15091509    pCtx->fs.fFlags                 = CPUMSELREG_FLAGS_VALID;
     
    15111511    pCtx->fs.Attr.n.u1DescType      = 1; /* code/data segment */
    15121512    pCtx->fs.Attr.n.u1Present       = 1;
    1513     pCtx->fs.Attr.n.u4Type          = X86_SEL_TYPE_RW;
     1513    pCtx->fs.Attr.n.u4Type          = X86_SEL_TYPE_RW_ACC;
    15141514
    15151515    pCtx->gs.fFlags                 = CPUMSELREG_FLAGS_VALID;
     
    15171517    pCtx->gs.Attr.n.u1DescType      = 1; /* code/data segment */
    15181518    pCtx->gs.Attr.n.u1Present       = 1;
    1519     pCtx->gs.Attr.n.u4Type          = X86_SEL_TYPE_RW;
     1519    pCtx->gs.Attr.n.u4Type          = X86_SEL_TYPE_RW_ACC;
    15201520
    15211521    pCtx->ss.fFlags                 = CPUMSELREG_FLAGS_VALID;
     
    15231523    pCtx->ss.Attr.n.u1Present       = 1;
    15241524    pCtx->ss.Attr.n.u1DescType      = 1; /* code/data segment */
    1525     pCtx->ss.Attr.n.u4Type          = X86_SEL_TYPE_RW;
     1525    pCtx->ss.Attr.n.u4Type          = X86_SEL_TYPE_RW_ACC;
    15261526
    15271527    pCtx->idtr.cbIdt                = 0xffff;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette