VirtualBox

Changeset 20668 in vbox


Ignore:
Timestamp:
Jun 17, 2009 1:46:05 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48763
Message:

Missing PDMApicGet/SetTpr updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r20427 r20668  
    41594159void cpu_set_apic_tpr(CPUX86State *env, uint8_t val)
    41604160{
    4161     int rc = PDMApicSetTPR(env->pVCpu, val);
     4161    int rc = PDMApicSetTPR(env->pVCpu, val << 4);       /* cr8 bits 3-0 correspond to bits 7-4 of the task priority mmio register. */
    41624162    LogFlow(("cpu_set_apic_tpr: val=%#x rc=%Rrc\n", val, rc)); NOREF(rc);
    41634163}
     
    41704170    {
    41714171        LogFlow(("cpu_get_apic_tpr: returns %#x\n", u8));
    4172         return u8;
     4172        return u8 >> 4;     /* cr8 bits 3-0 correspond to bits 7-4 of the task priority mmio register. */
    41734173    }
    41744174    LogFlow(("cpu_get_apic_tpr: returns 0 (rc=%Rrc)\n", rc));
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