VirtualBox

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


Ignore:
Timestamp:
Mar 3, 2011 1:48:16 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70322
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/x86_64
Files:
2 edited

Legend:

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

    r36125 r36140  
    253253}
    254254
    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 
    266255/* rm < 0 means no register index plus (-rm - 1 immediate bytes) */
    267256static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm,
     
    633622}
    634623
    635 #endif
     624#endif /* VBOX && REM_PHYS_ADDR_IN_TLB */
    636625
    637626static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args,
     
    812801        tcg_abort();
    813802    }
    814 #else /* VBOX */
     803#else  /* VBOX && REM_PHYS_ADDR_IN_TLB */
    815804    tcg_out_vbox_phys_read(s, opc, r0, data_reg);
    816 #endif /* VBOX */
     805#endif /* VBOX && REM_PHYS_ADDR_IN_TLB */
    817806
    818807#if defined(CONFIG_SOFTMMU)
     
    964953        tcg_abort();
    965954    }
    966 #else /* VBOX */
     955#else  /* VBOX && REM_PHYS_ADDR_IN_TLB */
    967956    tcg_out_vbox_phys_write(s, opc, r0, data_reg);
    968 #endif /* VBOX */
     957#endif /* VBOX && REM_PHYS_ADDR_IN_TLB */
    969958
    970959#if defined(CONFIG_SOFTMMU)
     
    1003992                                                   args[0]));
    1004993#else
    1005             /* @todo: can we clobber RAX here? */
     994            /** @todo: can we clobber RAX here? */
    1006995            tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_RAX,
    1007996                         (tcg_target_long)&(s->tb_next[args[0]]));
     
    13191308};
    13201309
     1310static inline void tcg_out_push(TCGContext *s, int reg)
     1311{
     1312    tcg_out_opc(s, (0x50 + (reg & 7)), 0, reg, 0);
     1313}
     1314
     1315static inline void tcg_out_pop(TCGContext *s, int reg)
     1316{
     1317    tcg_out_opc(s, (0x58 + (reg & 7)), 0, reg, 0);
     1318}
     1319
    13211320/* Generate global QEMU prologue and epilogue code */
    13221321void tcg_target_qemu_prologue(TCGContext *s)
  • trunk/src/recompiler/tcg/x86_64/tcg-target.h

    r29520 r36140  
    6868#define TCG_TARGET_HAS_ext32s_i64
    6969
    70 /* Must be in sync with dyngen register notion, see dyngen-exec.h */
     70/* Note: must be synced with dyngen-exec.h */
    7171#define TCG_AREG0 TCG_REG_R14
    7272#define TCG_AREG1 TCG_REG_R15
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