VirtualBox

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


Ignore:
Timestamp:
Dec 3, 2019 10:45:02 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135162
Message:

DevHPET: Must name timers differently now or STAM asserts. bugref:9218

File:
1 edited

Legend:

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

    r82329 r82338  
    14341434
    14351435    /* Init the HPET timers (init all regardless of how many we expose). */
     1436    static const char * const s_apszTimerNames[] =
     1437    { "HPET Timer 0", "HPET Timer 1", "HPET Timer 2", "HPET Timer 3" };
     1438    AssertCompile(RT_ELEMENTS(pThis->aTimers) == RT_ELEMENTS(s_apszTimerNames));
    14361439    for (unsigned i = 0; i < RT_ELEMENTS(pThis->aTimers); i++)
    14371440    {
     
    14391442
    14401443        rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, hpetR3Timer, pHpetTimer,
    1441                                   TMTIMER_FLAGS_NO_CRIT_SECT, "HPET Timer", &pThis->aTimers[i].hTimer);
     1444                                  TMTIMER_FLAGS_NO_CRIT_SECT, s_apszTimerNames[i], &pThis->aTimers[i].hTimer);
    14421445        AssertRCReturn(rc, rc);
    14431446        /** @todo r=bird: This is TOTALLY MESSED UP!  Why do we need
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