VirtualBox

Changeset 14531 in vbox for trunk/src/recompiler_new


Ignore:
Timestamp:
Nov 24, 2008 4:32:44 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39819
Message:

make new REM runnable on Win32 (workaround compiler bug)

Location:
trunk/src/recompiler_new
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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;
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