VirtualBox

Changeset 62093 in vbox for trunk


Ignore:
Timestamp:
Jul 7, 2016 12:43:07 AM (9 years ago)
Author:
vboxsync
Message:

IEM: Saved 1K (except 32-bit) by doing full+unaligned imm16, imme32 and imm64 loads instead of byte by byte.

File:
1 edited

Legend:

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

    r62092 r62093  
    17141714        uint8_t offOpcode = pVCpu->iem.s.offOpcode;
    17151715# ifdef IEM_USE_UNALIGNED_DATA_ACCESS
    1716         *pu16 = (uint16_t const *)&pVCpu->iem.s.abOpcode[offOpcode];
     1716        *pu16 = *(uint16_t const *)&pVCpu->iem.s.abOpcode[offOpcode];
    17171717# else
    17181718        *pu16 = RT_MAKE_U16(pVCpu->iem.s.abOpcode[offOpcode], pVCpu->iem.s.abOpcode[offOpcode + 1]);
     
    17401740        pVCpu->iem.s.offOpcode = (uint8_t)offOpcode + 2;
    17411741# ifdef IEM_USE_UNALIGNED_DATA_ACCESS
    1742         *pu16 = (uint16_t const *)&pVCpu->iem.s.abOpcode[offOpcode];
     1742        *pu16 = *(uint16_t const *)&pVCpu->iem.s.abOpcode[offOpcode];
    17431743# else
    17441744        *pu16 = RT_MAKE_U16(pVCpu->iem.s.abOpcode[offOpcode], pVCpu->iem.s.abOpcode[offOpcode + 1]);
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