VirtualBox

Changeset 16433 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 30, 2009 6:19:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42299
Message:

DisasmReg.cpp: Use RT_OFFSETOF_ADD instead of RT_OFFSETOF() + 1, g++ 4.2.1 on darwin/amd64 generates static initialization code otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/DisasmReg.cpp

    r13839 r16433  
    159159    RT_OFFSETOF(CPUMCTXCORE, edx),        /* USE_REG_DL */
    160160    RT_OFFSETOF(CPUMCTXCORE, ebx),        /* USE_REG_BL */
    161     RT_OFFSETOF(CPUMCTXCORE, eax) + 1,    /* USE_REG_AH */
    162     RT_OFFSETOF(CPUMCTXCORE, ecx) + 1,    /* USE_REG_CH */
    163     RT_OFFSETOF(CPUMCTXCORE, edx) + 1,    /* USE_REG_DH */
    164     RT_OFFSETOF(CPUMCTXCORE, ebx) + 1,    /* USE_REG_BH */
     161    RT_OFFSETOF_ADD(CPUMCTXCORE, eax, 1), /* USE_REG_AH */
     162    RT_OFFSETOF_ADD(CPUMCTXCORE, ecx, 1), /* USE_REG_CH */
     163    RT_OFFSETOF_ADD(CPUMCTXCORE, edx, 1), /* USE_REG_DH */
     164    RT_OFFSETOF_ADD(CPUMCTXCORE, ebx, 1), /* USE_REG_BH */
    165165    RT_OFFSETOF(CPUMCTXCORE, r8),         /* USE_REG_R8B */
    166166    RT_OFFSETOF(CPUMCTXCORE, r9),         /* USE_REG_R9B */
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