VirtualBox

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


Ignore:
Timestamp:
Mar 1, 2011 4:49:42 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70290
Message:

recompiler: Removing traces of attempts at making the recompiler compile with the microsoft compiler. (untested)

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

Legend:

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

    r33540 r36125  
    8484
    8585/* maximum number of register used for input function arguments */
    86 #ifndef VBOX
    8786static inline int tcg_target_get_call_iarg_regs_count(int flags)
    88 #else /* VBOX */
    89 DECLINLINE(int) tcg_target_get_call_iarg_regs_count(int flags)
    90 #endif /* VBOX */
    9187{
    9288    flags &= TCG_CALL_TYPE_MASK;
     
    159155
    160156/* test if a constant matches the constraint */
    161 #ifndef VBOX
    162157static inline int tcg_target_const_match(tcg_target_long val,
    163 #else /* VBOX */
    164 DECLINLINE(int) tcg_target_const_match(tcg_target_long val,
    165 #endif /* VBOX */
    166158                                         const TCGArgConstraint *arg_ct)
    167159{
     
    236228#endif
    237229
    238 #ifndef VBOX
    239230static inline void tcg_out_opc(TCGContext *s, int opc)
    240 #else /* VBOX */
    241 DECLINLINE(void) tcg_out_opc(TCGContext *s, int opc)
    242 #endif /* VBOX */
    243231{
    244232    if (opc & P_EXT)
     
    247235}
    248236
    249 #ifndef VBOX
    250237static inline void tcg_out_modrm(TCGContext *s, int opc, int r, int rm)
    251 #else /* VBOX */
    252 DECLINLINE(void) tcg_out_modrm(TCGContext *s, int opc, int r, int rm)
    253 #endif /* VBOX */
    254238{
    255239    tcg_out_opc(s, opc);
     
    258242
    259243/* rm == -1 means no register index */
    260 #ifndef VBOX
    261244static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm,
    262 #else /* VBOX */
    263 DECLINLINE(void) tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm,
    264 #endif /* VBOX */
    265245                                        int32_t offset)
    266246{
     
    295275}
    296276
    297 #ifndef VBOX
    298277static inline void tcg_out_mov(TCGContext *s, int ret, int arg)
    299 #else /* VBOX */
    300 DECLINLINE(void) tcg_out_mov(TCGContext *s, int ret, int arg)
    301 #endif /* VBOX */
    302278{
    303279    if (arg != ret)
     
    305281}
    306282
    307 #ifndef VBOX
    308283static inline void tcg_out_movi(TCGContext *s, TCGType type,
    309 #else /* VBOX */
    310 DECLINLINE(void) tcg_out_movi(TCGContext *s, TCGType type,
    311 #endif /* VBOX */
    312284                                int ret, int32_t arg)
    313285{
     
    321293}
    322294
    323 #ifndef VBOX
    324295static inline void tcg_out_push(TCGContext *s, int reg)
    325 #else /* VBOX */
    326 DECLINLINE(void) tcg_out_push(TCGContext *s, int reg)
    327 #endif /* VBOX */
    328296{
    329297    tcg_out_opc(s, 0x50 + reg);
    330298}
    331299
    332 #ifndef VBOX
    333300static inline void tcg_out_pop(TCGContext *s, int reg)
    334 #else /* VBOX */
    335 DECLINLINE(void) tcg_out_pop(TCGContext *s, int reg)
    336 #endif /* VBOX */
    337301{
    338302    tcg_out_opc(s, 0x58 + reg);
    339303}
    340304
    341 #ifndef VBOX
    342305static inline void tcg_out_ld(TCGContext *s, TCGType type, int ret,
    343 #else /* VBOX */
    344 DECLINLINE(void) tcg_out_ld(TCGContext *s, TCGType type, int ret,
    345 #endif /* VBOX */
    346306                              int arg1, tcg_target_long arg2)
    347307{
     
    350310}
    351311
    352 #ifndef VBOX
    353312static inline void tcg_out_st(TCGContext *s, TCGType type, int arg,
    354 #else /* VBOX */
    355 DECLINLINE(void) tcg_out_st(TCGContext *s, TCGType type, int arg,
    356 #endif /* VBOX */
    357313                              int arg1, tcg_target_long arg2)
    358314{
     
    361317}
    362318
    363 #ifndef VBOX
    364319static inline void tgen_arithi(TCGContext *s, int c, int r0, int32_t val)
    365 #else /* VBOX */
    366 DECLINLINE(void) tgen_arithi(TCGContext *s, int c, int r0, int32_t val)
    367 #endif /* VBOX */
    368320{
    369321    if (val == (int8_t)val) {
     
    444396
    445397#ifdef VBOX
    446 DECLINLINE(void)
    447 tcg_out_long_call(TCGContext *s, void* dst)
     398
     399DECLINLINE(void) tcg_out_long_call(TCGContext *s, void* dst)
    448400{
    449401    intptr_t disp;
     
    455407    tcg_out32(s, disp); /* disp32 */
    456408}
    457 DECLINLINE(void)
    458 tcg_out_long_jmp(TCGContext *s, void* dst)
     409
     410DECLINLINE(void) tcg_out_long_jmp(TCGContext *s, void* dst)
    459411{
    460412    intptr_t disp = (uintptr_t)dst - (uintptr_t)s->code_ptr - 5;
     
    462414    tcg_out32(s, disp); /* disp32 */
    463415}
     416
    464417#endif /* VBOX */
    465 
    466418
    467419/* XXX: we implement it at the target level to avoid having to
     
    11261078}
    11271079
    1128 #ifndef VBOX
    11291080static inline void tcg_out_op(TCGContext *s, int opc,
    1130 #else /* VBOX */
    1131 DECLINLINE(void) tcg_out_op(TCGContext *s, int opc,
    1132 #endif /* VBOX */
    11331081                              const TCGArg *args, const int *const_args)
    11341082{
  • trunk/src/recompiler/tcg/i386/tcg-target.h

    r29520 r36125  
    5757#endif
    5858
    59 #ifndef VBOX
    6059static inline void flush_icache_range(unsigned long start, unsigned long stop)
    61 #else
    62 DECLINLINE(void) flush_icache_range(unsigned long start, unsigned long stop)
    63 #endif
    6460{
    6561}
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