VirtualBox

Changeset 76063 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 7, 2018 8:07:56 PM (6 years ago)
Author:
vboxsync
Message:

DevAHCI: Tiger hack from Michal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r73097 r76063  
    573573    /** Flag whether the legacy port reset method should be used to make it work with saved states. */
    574574    bool                            fLegacyPortResetMethod;
     575    /** Enable tiger (10.4.x) SSTS hack or not. */
     576    bool                            fTigerHack;
    575577
    576578    /** Number of usable ports on this controller. */
     
    11791181        else
    11801182        {
    1181             pAhciPort->regSSTS = 0x1; /* Indicate device presence detected but communication not established. */
     1183            if (!pAhci->fTigerHack)
     1184                pAhciPort->regSSTS = 0x1;   /* Indicate device presence detected but communication not established. */
     1185            else
     1186                pAhciPort->regSSTS = 0x0;   /* Indicate no device detected after COMRESET. [tiger hack] */
    11821187            pAhciPort->regSCTL = u32Value;  /* Update before kicking the I/O thread. */
    11831188
     
    58825887                                    "PortCount\0"
    58835888                                    "Bootable\0"
    5884                                     "CmdSlotsAvail\0"))
     5889                                    "CmdSlotsAvail\0"
     5890                                    "TigerHack\0"))
    58855891        return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES,
    58865892                                N_("AHCI configuration error: unknown option specified"));
     
    59305936                                   N_("AHCI configuration error: CmdSlotsAvail=%u should be at least 1"),
    59315937                                   pThis->cCmdSlotsAvail);
     5938    bool fTigerHack;
     5939    rc = CFGMR3QueryBoolDef(pCfg, "TigerHack", &fTigerHack, false);
     5940    if (RT_FAILURE(rc))
     5941        return PDMDEV_SET_ERROR(pDevIns, rc, N_("AHCI configuration error: failed to read TigerHack as boolean"));
    59325942
    59335943    /*
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