Changeset 36140 in vbox for trunk/src/recompiler/tcg/i386
- Timestamp:
- Mar 3, 2011 1:48:16 PM (14 years ago)
- Location:
- trunk/src/recompiler/tcg/i386
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/tcg/i386/tcg-target.c
r36125 r36140 199 199 #define P_EXT 0x100 /* 0x0f opcode prefix */ 200 200 201 #if !defined(VBOX) || !defined(_MSC_VER)202 201 static const uint8_t tcg_cond_to_jcc[10] = { 203 202 [TCG_COND_EQ] = JCC_JE, … … 212 211 [TCG_COND_GTU] = JCC_JA, 213 212 }; 214 #else215 /* 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 #endif229 213 230 214 static inline void tcg_out_opc(TCGContext *s, int opc) … … 291 275 tcg_out32(s, arg); 292 276 } 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);303 277 } 304 278 … … 1065 1039 tcg_abort(); 1066 1040 } 1067 #else 1041 #else /* VBOX && REM_PHYS_ADDR_IN_TLB */ 1068 1042 tcg_out_vbox_phys_write(s, opc, r0, data_reg, data_reg2); 1069 #endif 1043 #endif /* VBOX && REM_PHYS_ADDR_IN_TLB */ 1070 1044 1071 1045 #if defined(CONFIG_SOFTMMU) … … 1376 1350 }; 1377 1351 1352 static inline void tcg_out_push(TCGContext *s, int reg) 1353 { 1354 tcg_out_opc(s, 0x50 + reg); 1355 } 1356 1357 static inline void tcg_out_pop(TCGContext *s, int reg) 1358 { 1359 tcg_out_opc(s, 0x58 + reg); 1360 } 1361 1378 1362 /* Generate global QEMU prologue and epilogue code */ 1379 1363 void tcg_target_qemu_prologue(TCGContext *s) -
trunk/src/recompiler/tcg/i386/tcg-target.h
r36125 r36140 53 53 #define TCG_AREG3 TCG_REG_EDI 54 54 #else 55 # define TCG_AREG0 TCG_REG_ESI56 # define TCG_AREG1 TCG_REG_EDI55 # define TCG_AREG0 TCG_REG_ESI 56 # define TCG_AREG1 TCG_REG_EDI 57 57 #endif 58 58
Note:
See TracChangeset
for help on using the changeset viewer.