VirtualBox

Changeset 104507 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
May 3, 2024 1:58:16 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163030
Message:

VMM,Main: Some GCM adjustments. bugref:9735 bugref:10683

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImplConfigX86.cpp

    r103091 r104507  
    8080#include <VBox/vmm/pdmdev.h> /* For PDMAPICMODE enum. */
    8181#include <VBox/vmm/pdmstorageifs.h>
    82 #include <VBox/vmm/gcm.h>
    8382#include <VBox/version.h>
    8483
     
    10691068         * Guest Compatibility Manager.
    10701069         */
    1071         PCFGMNODE   pGcmNode;
    1072         uint32_t    u32FixerSet = 0;
     1070        PCFGMNODE pGcmNode;
    10731071        InsertConfigNode(pRoot, "GCM", &pGcmNode);
    1074         /* OS/2 and Win9x guests can run DOS apps so they get
    1075          * the DOS specific fixes as well.
    1076          */
     1072        /* OS/2 and Win9x guests can run DOS apps so they get the DOS specific
     1073           fixes as well. */
     1074        if (fDosGuest || fOs2Guest || fW9xGuest)
     1075            InsertConfigInteger(pGcmNode, "DivByZeroDOS", 1);
    10771076        if (fOs2Guest)
    1078             u32FixerSet = GCMFIXER_DBZ_DOS | GCMFIXER_DBZ_OS2;
    1079         else if (fW9xGuest)
    1080             u32FixerSet = GCMFIXER_DBZ_DOS | GCMFIXER_DBZ_WIN9X;
    1081         else if (fDosGuest)
    1082             u32FixerSet = GCMFIXER_DBZ_DOS;
    1083         InsertConfigInteger(pGcmNode, "FixerSet", u32FixerSet);
    1084 
     1077            InsertConfigInteger(pGcmNode, "DivByZeroOS2", 1);
     1078        if (fW9xGuest)
     1079            InsertConfigInteger(pGcmNode, "DivByZeroWin9x", 1);
    10851080
    10861081        /*
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