VirtualBox

Changeset 14531

Show
Ignore:
Timestamp:
11/24/08 17:32:44 (1 month ago)
Author:
vboxsync
Message:

make new REM runnable on Win32 (workaround compiler bug)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/recompiler_new/Makefile.kmk

    r14507 r14531  
    162162$(REM_MOD)_LDFLAGS.solaris = -mimpure-text 
    163163 
    164 #$(REM_MOD)_LIBS           =    \ 
    165         $(LIB_VMM)              \ 
    166         $(LIB_RUNTIME) 
    167  
     164# Temporary hack, to allow running with oldish GCC 
     165$(REM_MOD)_DEFS.win.x86   += GCC_WITH_BUGGY_REGPARM 
     166  
    168167# 
    169168# The VBoxREM import library. 
  • trunk/src/recompiler_new/cpu-exec.c

    r13839 r14531  
    109109    env->current_tb = tb; 
    110110    /* execute the generated code */ 
     111#if defined(VBOX) && defined(GCC_WITH_BUGGY_REGPARM) 
     112    tcg_qemu_tb_exec(tb->tc_ptr, next_tb); 
     113#else 
    111114    next_tb = tcg_qemu_tb_exec(tb->tc_ptr); 
     115#endif 
    112116 
    113117    if ((next_tb & 3) == 2) { 
     
    473477                    /* execute the generated code */ 
    474478                    RAWEx_ProfileStart(env, STATS_QEMU_RUN_EMULATED_CODE); 
     479#if defined(VBOX) && defined(GCC_WITH_BUGGY_REGPARM) 
     480                    tcg_qemu_tb_exec(tc_ptr, next_tb);  
     481#else 
    475482                    next_tb = tcg_qemu_tb_exec(tc_ptr); 
     483#endif 
    476484                    RAWEx_ProfileStop(env, STATS_QEMU_RUN_EMULATED_CODE); 
    477485                    env->current_tb = NULL; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy