VirtualBox

Changeset 60320 in vbox


Ignore:
Timestamp:
Apr 4, 2016 10:10:47 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106386
Message:

bs3-cpu-basic-2: 386 fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-template.c

    r60311 r60320  
    346346    unsigned        i, j, k;
    347347    uint32_t        uExpected;
     348    bool const      f486Plus = (g_uBs3CpuDetected & BS3CPU_TYPE_MASK) >= BS3CPU_80486;
    348349# if TMPL_BITS == 16
    349350    bool const      f386Plus = (g_uBs3CpuDetected & BS3CPU_TYPE_MASK) >= BS3CPU_80386;
     
    11581159            CtxTmp.rflags.u32 |= X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF /* | X86_EFL_TF */ /*| X86_EFL_IF*/
    11591160                               | X86_EFL_DF | X86_EFL_OF | X86_EFL_IOPL /* | X86_EFL_NT*/;
    1160             if (f386Plus)
    1161                 CtxTmp.rflags.u32 |= /*X86_EFL_VM |*/ X86_EFL_AC | X86_EFL_VIF | X86_EFL_VIP;
    1162             if (f386Plus && !g_f16BitSys)
     1161            if (f486Plus)
     1162                CtxTmp.rflags.u32 |= X86_EFL_AC;
     1163            if (f486Plus && !g_f16BitSys)
    11631164                CtxTmp.rflags.u32 |= X86_EFL_RF;
    11641165            if (g_uBs3CpuDetected & BS3CPU_F_CPUID)
    1165                 CtxTmp.rflags.u32 |= X86_EFL_ID;
     1166                CtxTmp.rflags.u32 |= X86_EFL_VIF | X86_EFL_VIP;
    11661167            Bs3TrapSetJmpAndRestore(&CtxTmp, &TrapCtx);
    11671168            CtxTmp.rflags.u32 &= ~X86_EFL_RF;
Note: See TracChangeset for help on using the changeset viewer.

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