VirtualBox

Changeset 20666 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jun 17, 2009 1:01:56 PM (16 years ago)
Author:
vboxsync
Message:

Changed PDMApicGet/SetTPR to get/set the full task priority register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r20588 r20666  
    19951995        rc = PDMApicGetTPR(pVCpu, (uint8_t *)&val64, NULL);
    19961996        AssertMsgRCReturn(rc, ("PDMApicGetTPR failed\n"), VERR_EM_INTERPRETER);
     1997        val64 >>= 4;     /* bits 7-4 contain the task priority that go in cr8, bits 3-0*/
    19971998    }
    19981999    else
     
    21702171
    21712172    case USE_REG_CR8:
    2172         return PDMApicSetTPR(pVCpu, val);
     2173        return PDMApicSetTPR(pVCpu, val << 4);  /* cr8 bits 3-0 correspond to bits 7-4 of the task priority mmio register. */
    21732174
    21742175    default:
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