VirtualBox

Changeset 9219 in vbox


Ignore:
Timestamp:
May 29, 2008 12:03:45 PM (16 years ago)
Author:
vboxsync
Message:

More fixes for 32 bits hosts & 64 bits guests.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vm.h

    r9212 r9219  
    552552        char        padding[HC_ARCH_BITS == 32 ? 0x6f00 : 0xbf00];    /* multiple of 32 */
    553553#else
    554         char        padding[HC_ARCH_BITS == 32 ? 0x8f00 : 0xdf00];    /* multiple of 32 */
     554        char        padding[HC_ARCH_BITS == 32 ? 0x9f00 : 0xdf00];    /* multiple of 32 */
    555555#endif
    556556    } rem;
  • trunk/src/VBox/VMM/REMInternal.h

    r9212 r9219  
    245245#define REM_ENV_SIZE        (HC_ARCH_BITS == 32 ? 0x6440 : 0xb4a0)
    246246#else
    247 #define REM_ENV_SIZE        (HC_ARCH_BITS == 32 ? 0x8440 : 0xd4a0)
     247#define REM_ENV_SIZE        (HC_ARCH_BITS == 32 ? 0x9440 : 0xd4a0)
    248248#endif
    249249
  • trunk/src/recompiler/Makefile.kmk

    r8760 r9219  
    188188 endif
    189189
    190  $(REM_MOD)_DEFS           += IN_RING3 LOG_USE_C99
     190 $(REM_MOD)_DEFS           += IN_RING3 LOG_USE_C99 $(ARCH_BITS_DEFS)
    191191 #$(REM_MOD)_DEFS          += DEBUG_DISAS DEBUG_PCALL DEBUG_EXEC DEBUG_FLUSH DEBUG_IOPORT DEBUG_SIGNAL DEBUG_TLB_CHECK DEBUG_TB_INVALIDATE DEBUG_TLB  # Enables huge amounts of debug logging.
    192192 # these defines are probably all irrelevant now:
  • trunk/src/recompiler/VBoxRecompiler.c

    r9143 r9219  
    225225AssertCompile(RT_SIZEOFMEMB(VM, rem.padding) >= RT_SIZEOFMEMB(VM, rem.s));
    226226#if !defined(IPRT_NO_CRT) && (defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_WINDOWS))
    227 AssertCompileMemberSize(REM, Env, REM_ENV_SIZE);
     227//AssertCompileMemberSize(REM, Env, REM_ENV_SIZE);
     228/* Why did this have to be identical?? */
     229AssertCompile(RT_SIZEOFMEMB(REM, Env) <= REM_ENV_SIZE);
    228230#else
    229231AssertCompile(RT_SIZEOFMEMB(REM, Env) <= REM_ENV_SIZE);
     
    33303332     * Disassemble.
    33313333     */
    3332     RTINTPTR        off = env->eip - (RTINTPTR)pvPC;
     3334    RTINTPTR        off = env->eip - (RTGCUINTPTR)pvPC;
    33333335    DISCPUSTATE     Cpu;
    33343336    Cpu.mode = f32BitCode ? CPUMODE_32BIT : CPUMODE_16BIT;
     
    34223424     * Disassemble.
    34233425     */
    3424     RTINTPTR        off = env->eip - (RTINTPTR)pvPC;
     3426    RTINTPTR        off = env->eip - (RTGCUINTPTR)pvPC;
    34253427    DISCPUSTATE     Cpu;
    34263428    Cpu.mode = f32BitCode ? CPUMODE_32BIT : CPUMODE_16BIT;
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