Changeset 36140 in vbox for trunk/src/recompiler/tcg/x86_64
- Timestamp:
- Mar 3, 2011 1:48:16 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70322
- Location:
- trunk/src/recompiler/tcg/x86_64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/tcg/x86_64/tcg-target.c
r36125 r36140 253 253 } 254 254 255 static inline void tcg_out_push(TCGContext *s, int reg)256 {257 tcg_out_opc(s, (0x50 + (reg & 7)), 0, reg, 0);258 }259 260 static inline void tcg_out_pop(TCGContext *s, int reg)261 {262 tcg_out_opc(s, (0x58 + (reg & 7)), 0, reg, 0);263 }264 265 266 255 /* rm < 0 means no register index plus (-rm - 1 immediate bytes) */ 267 256 static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm, … … 633 622 } 634 623 635 #endif 624 #endif /* VBOX && REM_PHYS_ADDR_IN_TLB */ 636 625 637 626 static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, … … 812 801 tcg_abort(); 813 802 } 814 #else /* VBOX*/803 #else /* VBOX && REM_PHYS_ADDR_IN_TLB */ 815 804 tcg_out_vbox_phys_read(s, opc, r0, data_reg); 816 #endif /* VBOX */805 #endif /* VBOX && REM_PHYS_ADDR_IN_TLB */ 817 806 818 807 #if defined(CONFIG_SOFTMMU) … … 964 953 tcg_abort(); 965 954 } 966 #else /* VBOX*/955 #else /* VBOX && REM_PHYS_ADDR_IN_TLB */ 967 956 tcg_out_vbox_phys_write(s, opc, r0, data_reg); 968 #endif /* VBOX */957 #endif /* VBOX && REM_PHYS_ADDR_IN_TLB */ 969 958 970 959 #if defined(CONFIG_SOFTMMU) … … 1003 992 args[0])); 1004 993 #else 1005 /* @todo: can we clobber RAX here? */994 /** @todo: can we clobber RAX here? */ 1006 995 tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_RAX, 1007 996 (tcg_target_long)&(s->tb_next[args[0]])); … … 1319 1308 }; 1320 1309 1310 static inline void tcg_out_push(TCGContext *s, int reg) 1311 { 1312 tcg_out_opc(s, (0x50 + (reg & 7)), 0, reg, 0); 1313 } 1314 1315 static inline void tcg_out_pop(TCGContext *s, int reg) 1316 { 1317 tcg_out_opc(s, (0x58 + (reg & 7)), 0, reg, 0); 1318 } 1319 1321 1320 /* Generate global QEMU prologue and epilogue code */ 1322 1321 void tcg_target_qemu_prologue(TCGContext *s) -
trunk/src/recompiler/tcg/x86_64/tcg-target.h
r29520 r36140 68 68 #define TCG_TARGET_HAS_ext32s_i64 69 69 70 /* Must be in sync with dyngen register notion, seedyngen-exec.h */70 /* Note: must be synced with dyngen-exec.h */ 71 71 #define TCG_AREG0 TCG_REG_R14 72 72 #define TCG_AREG1 TCG_REG_R15
Note:
See TracChangeset
for help on using the changeset viewer.