VirtualBox

Changeset 13193 in vbox for trunk/src


Ignore:
Timestamp:
Oct 13, 2008 6:30:04 AM (16 years ago)
Author:
vboxsync
Message:

uint64_t conversion fix

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r13161 r13193  
    26422642        return VERR_EM_INTERPRETER; /* not supported */
    26432643
    2644     val = (uint64_t)pRegFrame->eax | ((uint64_t)pRegFrame->edx << 32ULL);
     2644    val = RT_MAKE_U64(pRegFrame->eax, pRegFrame->edx);
    26452645    Log(("EMInterpretWrmsr %s (%x) val=%VX64\n", emMSRtoString(pRegFrame->ecx), pRegFrame->ecx, val));
    26462646    switch (pRegFrame->ecx)
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r13182 r13193  
    22822282        AssertRC(rc);
    22832283#else
     2284        uint32_t val_hi;
    22842285        rc = VMXReadVMCS(VMX_VMCS_EXIT_PHYS_ADDR_FULL, &val);
    22852286        AssertRC(rc);
    2286         GCPhys = val;
    2287         rc = VMXReadVMCS(VMX_VMCS_EXIT_PHYS_ADDR_HIGH, &val);
    2288         GCPhys |= (val << 32ULL);     
     2287        rc = VMXReadVMCS(VMX_VMCS_EXIT_PHYS_ADDR_HIGH, &val_hi);
     2288        AssertRC(rc);
     2289        GCPhys = RT_MAKE_U64(val, val_hi);
    22892290#endif
    22902291
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