VirtualBox

Changeset 36125 in vbox for trunk/src/recompiler/exec-all.h


Ignore:
Timestamp:
Mar 1, 2011 4:49:42 PM (14 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

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

    r35346 r36125  
    112112                      target_phys_addr_t paddr, int prot,
    113113                      int mmu_idx, int is_softmmu);
    114 #ifndef VBOX
    115114static inline int tlb_set_page(CPUState *env1, target_ulong vaddr,
    116115                               target_phys_addr_t paddr, int prot,
    117116                               int mmu_idx, int is_softmmu)
    118 #else
    119 DECLINLINE(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
    123117{
    124118    if (prot & PAGE_READ)
     
    193187};
    194188
    195 #ifndef VBOX
    196189static inline unsigned int tb_jmp_cache_hash_page(target_ulong pc)
    197 #else
    198 DECLINLINE(unsigned int) tb_jmp_cache_hash_page(target_ulong pc)
    199 #endif
    200190{
    201191    target_ulong tmp;
     
    204194}
    205195
    206 #ifndef VBOX
    207196static inline unsigned int tb_jmp_cache_hash_func(target_ulong pc)
    208 #else
    209 DECLINLINE(unsigned int) tb_jmp_cache_hash_func(target_ulong pc)
    210 #endif
    211 
    212197{
    213198    target_ulong tmp;
     
    217202}
    218203
    219 #ifndef VBOX
    220204static inline unsigned int tb_phys_hash_func(unsigned long pc)
    221 #else
    222 DECLINLINE(unsigned int) tb_phys_hash_func(unsigned long pc)
    223 #endif
    224205{
    225206    return pc & (CODE_GEN_PHYS_HASH_SIZE - 1);
     
    281262
    282263/* set the jump target */
    283 #ifndef VBOX
    284264static inline void tb_set_jmp_target(TranslationBlock *tb,
    285265                                     int n, unsigned long addr)
    286 #else
    287 DECLINLINE(void) tb_set_jmp_target(TranslationBlock *tb,
    288                                    int n, unsigned long addr)
    289 #endif
    290266{
    291267    tb->tb_next[n] = addr;
     
    294270#endif
    295271
    296 #ifndef VBOX
    297272static inline void tb_add_jump(TranslationBlock *tb, int n,
    298273                               TranslationBlock *tb_next)
    299 #else
    300 DECLINLINE(void) tb_add_jump(TranslationBlock *tb, int n,
    301                              TranslationBlock *tb_next)
    302 #endif
    303274{
    304275    /* NOTE: this test is only needed for thread safety */
     
    384355/* NOTE2: the returned address is not exactly the physical address: it
    385356   is the offset relative to phys_ram_base */
    386 #ifndef VBOX
    387357static inline target_ulong get_phys_addr_code(CPUState *env1, target_ulong addr)
    388 #else
    389 DECLINLINE(target_ulong) get_phys_addr_code(CPUState *env1, target_ulong addr)
    390 #endif
    391358{
    392359    int mmu_idx, page_index, pd;
     
    425392/* Deterministic execution requires that IO only be performed on the last
    426393   instruction of a TB so that interrupts take effect immediately.  */
    427 #ifndef VBOX
    428394static inline int can_do_io(CPUState *env)
    429 #else
    430 DECLINLINE(int) can_do_io(CPUState *env)
    431 #endif
    432395{
    433396    if (!use_icount)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette