VirtualBox

Changeset 36140 in vbox for trunk/src/recompiler/tcg/i386


Ignore:
Timestamp:
Mar 3, 2011 1:48:16 PM (14 years ago)
Author:
vboxsync
Message:

rem: Re-synced to svn://svn.savannah.nongnu.org/qemu/trunk@5495 (repo UUID c046a42c-6fe2-441c-8c8c-71466251a162).

Location:
trunk/src/recompiler/tcg/i386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/tcg/i386/tcg-target.c

    r36125 r36140  
    199199#define P_EXT   0x100 /* 0x0f opcode prefix */
    200200
    201 #if !defined(VBOX) || !defined(_MSC_VER)
    202201static const uint8_t tcg_cond_to_jcc[10] = {
    203202    [TCG_COND_EQ] = JCC_JE,
     
    212211    [TCG_COND_GTU] = JCC_JA,
    213212};
    214 #else
    215 /* Fortunately, ordering is right */
    216 static const uint8_t tcg_cond_to_jcc[10] = {
    217     JCC_JE,
    218     JCC_JNE,
    219     JCC_JL,
    220     JCC_JGE,
    221     JCC_JLE,
    222     JCC_JG,
    223     JCC_JB,
    224     JCC_JAE,
    225     JCC_JBE,
    226     JCC_JA,
    227 };
    228 #endif
    229213
    230214static inline void tcg_out_opc(TCGContext *s, int opc)
     
    291275        tcg_out32(s, arg);
    292276    }
    293 }
    294 
    295 static inline void tcg_out_push(TCGContext *s, int reg)
    296 {
    297     tcg_out_opc(s, 0x50 + reg);
    298 }
    299 
    300 static inline void tcg_out_pop(TCGContext *s, int reg)
    301 {
    302     tcg_out_opc(s, 0x58 + reg);
    303277}
    304278
     
    10651039        tcg_abort();
    10661040    }
    1067 #else
     1041#else  /* VBOX && REM_PHYS_ADDR_IN_TLB */
    10681042    tcg_out_vbox_phys_write(s, opc, r0, data_reg, data_reg2);
    1069 #endif
     1043#endif /* VBOX && REM_PHYS_ADDR_IN_TLB */
    10701044
    10711045#if defined(CONFIG_SOFTMMU)
     
    13761350};
    13771351
     1352static inline void tcg_out_push(TCGContext *s, int reg)
     1353{
     1354    tcg_out_opc(s, 0x50 + reg);
     1355}
     1356
     1357static inline void tcg_out_pop(TCGContext *s, int reg)
     1358{
     1359    tcg_out_opc(s, 0x58 + reg);
     1360}
     1361
    13781362/* Generate global QEMU prologue and epilogue code */
    13791363void tcg_target_qemu_prologue(TCGContext *s)
  • trunk/src/recompiler/tcg/i386/tcg-target.h

    r36125 r36140  
    5353#define TCG_AREG3 TCG_REG_EDI
    5454#else
    55 #define TCG_AREG0 TCG_REG_ESI
    56 #define TCG_AREG1 TCG_REG_EDI
     55# define TCG_AREG0 TCG_REG_ESI
     56# define TCG_AREG1 TCG_REG_EDI
    5757#endif
    5858
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