VirtualBox

Changeset 37852 in vbox


Ignore:
Timestamp:
Jul 8, 2011 7:18:05 PM (14 years ago)
Author:
vboxsync
Message:

alignment fix (darwin.x86/VBoxREM64).

Location:
trunk/src/recompiler
Files:
2 edited

Legend:

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

    r37723 r37852  
    221221
    222222/** Prologue code, must be in lower 4G to simplify jumps to/from generated code.
    223  * @todo huh??? That cannot be the case on the mac... So, this 
     223 * @todo huh??? That cannot be the case on the mac... So, this
    224224 *       point is probably not valid any longer. */
    225225uint8_t *code_gen_prologue;
     
    415415    STAM_REG(pVM, &pVM->rem.s.Env.StatTbFlush,      STAMTYPE_PROFILE,   "/REM/TbFlush",     STAMUNIT_TICKS_PER_CALL, "profiling tb_flush().");
    416416#endif /* VBOX_WITH_STATISTICS */
     417    AssertCompileMemberAlignment(CPUX86State, StatTbFlush, 4);
     418    AssertCompileMemberAlignment(CPUX86State, StatTbFlush, 8);
    417419
    418420    STAM_REL_REG(pVM, &tb_flush_count,              STAMTYPE_U32_RESET, "/REM/TbFlushCount",                STAMUNIT_OCCURENCES, "tb_flush() calls");
  • trunk/src/recompiler/target-i386/cpu.h

    r37689 r37852  
    782782#else  /* VBOX */
    783783
    784 /* see 641 line to consult current alignments for darwin 32-bit host. */
    785 # if HC_ARCH_BITS == 64 || (defined(RT_OS_DARWIN) && HC_ARCH_BITS == 32)
    786     uint32_t alignment2[3];
    787 # else
    788     uint32_t alignmnt2[2];
     784    /** Alignment padding. */
     785# if HC_ARCH_BITS == 64 || (defined(RT_OS_DARWIN) && !defined(VBOX_ENABLE_VBOXREM64))
     786    uint32_t alignment2[1];
    789787# endif
     788
    790789    /** Profiling tb_flush. */
    791790    STAMPROFILE StatTbFlush;
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