VirtualBox

Changeset 37505 in vbox


Ignore:
Timestamp:
Jun 16, 2011 4:37:47 PM (14 years ago)
Author:
vboxsync
Message:

hpetTimerRegWrite32 optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevHPET.cpp

    r37504 r37505  
    526526    HpetTimer *pHpetTimer = &pThis->aTimers[iTimerNo];
    527527
    528     /** @todo iOldValue is only used by in HPET_TN_CFG, so this is a waste of
    529      *   time. */
    530     uint32_t u32Temp;
    531     int rc = hpetTimerRegRead32(pThis, iTimerNo, iTimerReg, &u32Temp);
    532     if (RT_FAILURE(rc))
    533         return rc;
    534     uint64_t iOldValue = u32Temp;
    535 
    536528    switch (iTimerReg)
    537529    {
     
    539531        {
    540532            Log(("write HPET_TN_CFG: %d: %x\n", iTimerNo, u32NewValue));
     533            uint64_t const iOldValue = (uint32_t)pHpetTimer->u64Config;
    541534
    542535            uint64_t u64Mask = HPET_TN_CFG_WRITE_MASK;
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