VirtualBox

Ignore:
Timestamp:
Oct 19, 2008 8:45:30 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38111
Message:

more MSVC-related stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/exec-all.h

    r13337 r13382  
    112112                      target_phys_addr_t paddr, int prot,
    113113                      int mmu_idx, int is_softmmu);
     114#ifndef VBOX
    114115static inline int tlb_set_page(CPUState *env1, target_ulong vaddr,
    115116                               target_phys_addr_t paddr, int prot,
    116117                               int mmu_idx, int is_softmmu)
     118#else
     119DECLINLINE(int) tlb_set_page(CPUState *env1, target_ulong vaddr,
     120                               target_phys_addr_t paddr, int prot,
     121                               int mmu_idx, int is_softmmu)
     122#endif
    117123{
    118124    if (prot & PAGE_READ)
     
    190196};
    191197
     198#ifndef VBOX
    192199static inline unsigned int tb_jmp_cache_hash_page(target_ulong pc)
     200#else
     201DECLINLINE(unsigned int) tb_jmp_cache_hash_page(target_ulong pc)
     202#endif
    193203{
    194204    target_ulong tmp;
     
    197207}
    198208
     209#ifndef VBOX
    199210static inline unsigned int tb_jmp_cache_hash_func(target_ulong pc)
     211#else
     212DECLINLINE(unsigned int) tb_jmp_cache_hash_func(target_ulong pc)
     213#endif
     214
    200215{
    201216    target_ulong tmp;
     
    205220}
    206221
     222#ifndef VBOX
    207223static inline unsigned int tb_phys_hash_func(unsigned long pc)
     224#else
     225DECLINLINE(unsigned int) tb_phys_hash_func(unsigned long pc)
     226#endif
    208227{
    209228    return pc & (CODE_GEN_PHYS_HASH_SIZE - 1);
     
    265284
    266285/* set the jump target */
     286#ifndef VBOX
    267287static inline void tb_set_jmp_target(TranslationBlock *tb,
    268288                                     int n, unsigned long addr)
     289#else
     290DECLINLINE(void) tb_set_jmp_target(TranslationBlock *tb,
     291                                   int n, unsigned long addr)
     292#endif
    269293{
    270294    tb->tb_next[n] = addr;
     
    273297#endif
    274298
     299#ifndef VBOX
    275300static inline void tb_add_jump(TranslationBlock *tb, int n,
    276301                               TranslationBlock *tb_next)
     302#else
     303DECLINLINE(void) tb_add_jump(TranslationBlock *tb, int n,
     304                             TranslationBlock *tb_next)
     305#endif
    277306{
    278307    /* NOTE: this test is only needed for thread safety */
     
    361390/* NOTE2: the returned address is not exactly the physical address: it
    362391   is the offset relative to phys_ram_base */
     392#ifndef VBOX
    363393static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr)
     394#else
     395DECLINLINE(target_ulong) get_phys_addr_code(CPUState *env, target_ulong addr)
     396#endif
    364397{
    365398    int is_user, index, pd;
     
    381414#error unimplemented CPU
    382415#endif
     416#ifndef VBOX
    383417    if (__builtin_expect(env->tlb_table[is_user][index].addr_code !=
    384418                         (addr & TARGET_PAGE_MASK), 0)) {
     419#else
     420    if (RT_UNLIKELY(env->tlb_table[is_user][index].addr_code !=
     421                         (addr & TARGET_PAGE_MASK))) {
     422#endif
    385423        ldub_code(addr);
    386424    }
     
    406444/* Deterministic execution requires that IO only be performed on the last
    407445   instruction of a TB so that interrupts take effect immediately.  */
     446#ifndef VBOX
    408447static inline int can_do_io(CPUState *env)
     448#else
     449DECLINLINE(int) can_do_io(CPUState *env)
     450#endif
    409451{
    410452    if (!use_icount)
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