VirtualBox

Changeset 82810 in vbox for trunk/include/iprt/x86.h


Ignore:
Timestamp:
Jan 21, 2020 9:37:25 AM (5 years ago)
Author:
vboxsync
Message:

x86.h: Updated/added LBR MSRs for upcoming changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r82707 r82810  
    14011401                                             | MSR_IA32_DEBUGCTL_RTM)
    14021402
    1403 /** The number (0..3 or 0..15) of the last branch record register on P4 and
    1404  * related Xeons. */
    1405 #define MSR_P4_LASTBRANCH_TOS               UINT32_C(0x000001da)
    14061403/** @name Last branch registers for P4 and Xeon, models 0 thru 2.
    14071404 * @{ */
    1408 #define MSR_P4_LASTBRANCH_0                 UINT32_C(0x000001db)
    1409 #define MSR_P4_LASTBRANCH_1                 UINT32_C(0x000001dc)
    1410 #define MSR_P4_LASTBRANCH_2                 UINT32_C(0x000001dd)
    1411 #define MSR_P4_LASTBRANCH_3                 UINT32_C(0x000001de)
     1405#define MSR_P4_LASTBRANCH_0                 0x1db
     1406#define MSR_P4_LASTBRANCH_1                 0x1dc
     1407#define MSR_P4_LASTBRANCH_2                 0x1dd
     1408#define MSR_P4_LASTBRANCH_3                 0x1de
     1409
     1410/** LBR Top-of-stack MSR (index to most recent record). */
     1411#define MSR_P4_LASTBRANCH_TOS               0x1da
     1412/** @} */
     1413
     1414/** @name Last branch registers for Core 2 and related Xeons.
     1415 * @{ */
     1416#define MSR_CORE2_LASTBRANCH_0_FROM_IP      0x40
     1417#define MSR_CORE2_LASTBRANCH_1_FROM_IP      0x41
     1418#define MSR_CORE2_LASTBRANCH_2_FROM_IP      0x42
     1419#define MSR_CORE2_LASTBRANCH_3_FROM_IP      0x43
     1420
     1421#define MSR_CORE2_LASTBRANCH_0_TO_IP        0x60
     1422#define MSR_CORE2_LASTBRANCH_1_TO_IP        0x61
     1423#define MSR_CORE2_LASTBRANCH_2_TO_IP        0x62
     1424#define MSR_CORE2_LASTBRANCH_3_TO_IP        0x63
     1425
     1426/** LBR Top-of-stack MSR (index to most recent record). */
     1427#define MSR_CORE2_LASTBRANCH_TOS            0x1c9
     1428/** @} */
     1429
     1430/** @name Last branch registers.
     1431 * @{ */
     1432#define MSR_LASTBRANCH_0_FROM_IP            0x680
     1433#define MSR_LASTBRANCH_1_FROM_IP            0x681
     1434#define MSR_LASTBRANCH_2_FROM_IP            0x682
     1435#define MSR_LASTBRANCH_3_FROM_IP            0x683
     1436#define MSR_LASTBRANCH_4_FROM_IP            0x684
     1437#define MSR_LASTBRANCH_5_FROM_IP            0x685
     1438#define MSR_LASTBRANCH_6_FROM_IP            0x686
     1439#define MSR_LASTBRANCH_7_FROM_IP            0x687
     1440#define MSR_LASTBRANCH_8_FROM_IP            0x688
     1441#define MSR_LASTBRANCH_9_FROM_IP            0x689
     1442#define MSR_LASTBRANCH_10_FROM_IP           0x68a
     1443#define MSR_LASTBRANCH_11_FROM_IP           0x68b
     1444#define MSR_LASTBRANCH_12_FROM_IP           0x68c
     1445#define MSR_LASTBRANCH_13_FROM_IP           0x68d
     1446#define MSR_LASTBRANCH_14_FROM_IP           0x68e
     1447#define MSR_LASTBRANCH_15_FROM_IP           0x68f
     1448#define MSR_LASTBRANCH_16_FROM_IP           0x690
     1449#define MSR_LASTBRANCH_17_FROM_IP           0x691
     1450#define MSR_LASTBRANCH_18_FROM_IP           0x692
     1451#define MSR_LASTBRANCH_19_FROM_IP           0x693
     1452#define MSR_LASTBRANCH_20_FROM_IP           0x694
     1453#define MSR_LASTBRANCH_21_FROM_IP           0x695
     1454#define MSR_LASTBRANCH_22_FROM_IP           0x696
     1455#define MSR_LASTBRANCH_23_FROM_IP           0x697
     1456#define MSR_LASTBRANCH_24_FROM_IP           0x698
     1457#define MSR_LASTBRANCH_25_FROM_IP           0x699
     1458#define MSR_LASTBRANCH_26_FROM_IP           0x69a
     1459#define MSR_LASTBRANCH_27_FROM_IP           0x69b
     1460#define MSR_LASTBRANCH_28_FROM_IP           0x69c
     1461#define MSR_LASTBRANCH_29_FROM_IP           0x69d
     1462#define MSR_LASTBRANCH_30_FROM_IP           0x69e
     1463#define MSR_LASTBRANCH_31_FROM_IP           0x69f
     1464
     1465#define MSR_LASTBRANCH_0_TO_IP              0x6c0
     1466#define MSR_LASTBRANCH_1_TO_IP              0x6c1
     1467#define MSR_LASTBRANCH_2_TO_IP              0x6c2
     1468#define MSR_LASTBRANCH_3_TO_IP              0x6c3
     1469#define MSR_LASTBRANCH_4_TO_IP              0x6c4
     1470#define MSR_LASTBRANCH_5_TO_IP              0x6c5
     1471#define MSR_LASTBRANCH_6_TO_IP              0x6c6
     1472#define MSR_LASTBRANCH_7_TO_IP              0x6c7
     1473#define MSR_LASTBRANCH_8_TO_IP              0x6c8
     1474#define MSR_LASTBRANCH_9_TO_IP              0x6c9
     1475#define MSR_LASTBRANCH_10_TO_IP             0x6ca
     1476#define MSR_LASTBRANCH_11_TO_IP             0x6cb
     1477#define MSR_LASTBRANCH_12_TO_IP             0x6cc
     1478#define MSR_LASTBRANCH_13_TO_IP             0x6cd
     1479#define MSR_LASTBRANCH_14_TO_IP             0x6ce
     1480#define MSR_LASTBRANCH_15_TO_IP             0x6cf
     1481#define MSR_LASTBRANCH_16_TO_IP             0x6d0
     1482#define MSR_LASTBRANCH_17_TO_IP             0x6d1
     1483#define MSR_LASTBRANCH_18_TO_IP             0x6d2
     1484#define MSR_LASTBRANCH_19_TO_IP             0x6d3
     1485#define MSR_LASTBRANCH_20_TO_IP             0x6d4
     1486#define MSR_LASTBRANCH_21_TO_IP             0x6d5
     1487#define MSR_LASTBRANCH_22_TO_IP             0x6d6
     1488#define MSR_LASTBRANCH_23_TO_IP             0x6d7
     1489#define MSR_LASTBRANCH_24_TO_IP             0x6d8
     1490#define MSR_LASTBRANCH_25_TO_IP             0x6d9
     1491#define MSR_LASTBRANCH_26_TO_IP             0x6da
     1492#define MSR_LASTBRANCH_27_TO_IP             0x6db
     1493#define MSR_LASTBRANCH_28_TO_IP             0x6dc
     1494#define MSR_LASTBRANCH_29_TO_IP             0x6dd
     1495#define MSR_LASTBRANCH_30_TO_IP             0x6de
     1496#define MSR_LASTBRANCH_31_TO_IP             0x6df
     1497
     1498/** LBR Top-of-stack MSR (index to most recent record). */
     1499#define MSR_LASTBRANCH_TOS                  0x1c9
    14121500/** @} */
    14131501
     
    15431631/** Core Performance Limit Reasons. */
    15441632#define MSR_CORE_PERF_LIMIT_REASONS         0x64f
    1545 
    1546 /** Last branch record from IP MSRs.
    1547  * @{ */
    1548 #define MSR_LASTBRANCH_0_FROM_IP            0x680
    1549 #define MSR_LASTBRANCH_1_FROM_IP            0x681
    1550 #define MSR_LASTBRANCH_2_FROM_IP            0x682
    1551 #define MSR_LASTBRANCH_3_FROM_IP            0x683
    1552 #define MSR_LASTBRANCH_4_FROM_IP            0x684
    1553 #define MSR_LASTBRANCH_5_FROM_IP            0x685
    1554 #define MSR_LASTBRANCH_6_FROM_IP            0x686
    1555 #define MSR_LASTBRANCH_7_FROM_IP            0x687
    1556 #define MSR_LASTBRANCH_8_FROM_IP            0x688
    1557 #define MSR_LASTBRANCH_9_FROM_IP            0x689
    1558 #define MSR_LASTBRANCH_10_FROM_IP           0x68a
    1559 #define MSR_LASTBRANCH_11_FROM_IP           0x68b
    1560 #define MSR_LASTBRANCH_12_FROM_IP           0x68c
    1561 #define MSR_LASTBRANCH_13_FROM_IP           0x68d
    1562 #define MSR_LASTBRANCH_14_FROM_IP           0x68e
    1563 #define MSR_LASTBRANCH_15_FROM_IP           0x68f
    1564 #define MSR_LASTBRANCH_16_FROM_IP           0x690
    1565 #define MSR_LASTBRANCH_17_FROM_IP           0x691
    1566 #define MSR_LASTBRANCH_18_FROM_IP           0x692
    1567 #define MSR_LASTBRANCH_19_FROM_IP           0x693
    1568 #define MSR_LASTBRANCH_20_FROM_IP           0x694
    1569 #define MSR_LASTBRANCH_21_FROM_IP           0x695
    1570 #define MSR_LASTBRANCH_22_FROM_IP           0x696
    1571 #define MSR_LASTBRANCH_23_FROM_IP           0x697
    1572 #define MSR_LASTBRANCH_24_FROM_IP           0x698
    1573 #define MSR_LASTBRANCH_25_FROM_IP           0x699
    1574 #define MSR_LASTBRANCH_26_FROM_IP           0x69a
    1575 #define MSR_LASTBRANCH_27_FROM_IP           0x69b
    1576 #define MSR_LASTBRANCH_28_FROM_IP           0x69c
    1577 #define MSR_LASTBRANCH_29_FROM_IP           0x69d
    1578 #define MSR_LASTBRANCH_30_FROM_IP           0x69e
    1579 #define MSR_LASTBRANCH_31_FROM_IP           0x69f
    1580 /** @} */
    1581 
    1582 /** Last branch record to IP MSRs.
    1583  * @{ */
    1584 #define MSR_LASTBRANCH_0_TO_IP              0x6c0
    1585 #define MSR_LASTBRANCH_1_TO_IP              0x6c1
    1586 #define MSR_LASTBRANCH_2_TO_IP              0x6c2
    1587 #define MSR_LASTBRANCH_3_TO_IP              0x6c3
    1588 #define MSR_LASTBRANCH_4_TO_IP              0x6c4
    1589 #define MSR_LASTBRANCH_5_TO_IP              0x6c5
    1590 #define MSR_LASTBRANCH_6_TO_IP              0x6c6
    1591 #define MSR_LASTBRANCH_7_TO_IP              0x6c7
    1592 #define MSR_LASTBRANCH_8_TO_IP              0x6c8
    1593 #define MSR_LASTBRANCH_9_TO_IP              0x6c9
    1594 #define MSR_LASTBRANCH_10_TO_IP             0x6ca
    1595 #define MSR_LASTBRANCH_11_TO_IP             0x6cb
    1596 #define MSR_LASTBRANCH_12_TO_IP             0x6cc
    1597 #define MSR_LASTBRANCH_13_TO_IP             0x6cd
    1598 #define MSR_LASTBRANCH_14_TO_IP             0x6ce
    1599 #define MSR_LASTBRANCH_15_TO_IP             0x6cf
    1600 #define MSR_LASTBRANCH_16_TO_IP             0x6d0
    1601 #define MSR_LASTBRANCH_17_TO_IP             0x6d1
    1602 #define MSR_LASTBRANCH_18_TO_IP             0x6d2
    1603 #define MSR_LASTBRANCH_19_TO_IP             0x6d3
    1604 #define MSR_LASTBRANCH_20_TO_IP             0x6d4
    1605 #define MSR_LASTBRANCH_21_TO_IP             0x6d5
    1606 #define MSR_LASTBRANCH_22_TO_IP             0x6d6
    1607 #define MSR_LASTBRANCH_23_TO_IP             0x6d7
    1608 #define MSR_LASTBRANCH_24_TO_IP             0x6d8
    1609 #define MSR_LASTBRANCH_25_TO_IP             0x6d9
    1610 #define MSR_LASTBRANCH_26_TO_IP             0x6da
    1611 #define MSR_LASTBRANCH_27_TO_IP             0x6db
    1612 #define MSR_LASTBRANCH_28_TO_IP             0x6dc
    1613 #define MSR_LASTBRANCH_29_TO_IP             0x6dd
    1614 #define MSR_LASTBRANCH_30_TO_IP             0x6de
    1615 #define MSR_LASTBRANCH_31_TO_IP             0x6df
    1616 /** @} */
    16171633
    16181634/** X2APIC MSR range start. */
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