VirtualBox

Changeset 36125 in vbox for trunk/src/recompiler/exec.c


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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/exec.c

    r35996 r36125  
    358358}
    359359
    360 #ifndef VBOX
    361360static inline PageDesc **page_l1_map(target_ulong index)
    362 #else
    363 DECLINLINE(PageDesc **) page_l1_map(target_ulong index)
    364 #endif
    365361{
    366362#ifndef VBOX
     
    392388}
    393389
    394 #ifndef VBOX
    395390static inline PageDesc *page_find_alloc(target_ulong index)
    396 #else
    397 DECLINLINE(PageDesc *) page_find_alloc(target_ulong index)
    398 #endif
    399391{
    400392    PageDesc **lp, *p;
     
    427419}
    428420
    429 #ifndef VBOX
    430421static inline PageDesc *page_find(target_ulong index)
    431 #else
    432 DECLINLINE(PageDesc *) page_find(target_ulong index)
    433 #endif
    434422{
    435423    PageDesc **lp, *p;
     
    497485}
    498486
    499 #ifndef VBOX
    500487static inline PhysPageDesc *phys_page_find(target_phys_addr_t index)
    501 #else
    502 DECLINLINE(PhysPageDesc *) phys_page_find(target_phys_addr_t index)
    503 #endif
    504488{
    505489    return phys_page_find_alloc(index, 0);
     
    716700}
    717701
    718 #ifndef VBOX
    719702static inline void invalidate_page_bitmap(PageDesc *p)
    720 #else
    721 DECLINLINE(void) invalidate_page_bitmap(PageDesc *p)
    722 #endif
    723703{
    724704    if (p->code_bitmap) {
     
    852832
    853833/* invalidate one TB */
    854 #ifndef VBOX
    855834static inline void tb_remove(TranslationBlock **ptb, TranslationBlock *tb,
    856835                             int next_offset)
    857 #else
    858 DECLINLINE(void) tb_remove(TranslationBlock **ptb, TranslationBlock *tb,
    859                            int next_offset)
    860 #endif
    861836{
    862837    TranslationBlock *tb1;
     
    871846}
    872847
    873 #ifndef VBOX
    874848static inline void tb_page_remove(TranslationBlock **ptb, TranslationBlock *tb)
    875 #else
    876 DECLINLINE(void) tb_page_remove(TranslationBlock **ptb, TranslationBlock *tb)
    877 #endif
    878849{
    879850    TranslationBlock *tb1;
     
    892863}
    893864
    894 #ifndef VBOX
    895865static inline void tb_jmp_remove(TranslationBlock *tb, int n)
    896 #else
    897 DECLINLINE(void) tb_jmp_remove(TranslationBlock *tb, int n)
    898 #endif
    899866{
    900867    TranslationBlock *tb1, **ptb;
     
    926893/* reset the jump entry 'n' of a TB so that it is not chained to
    927894   another TB */
    928 #ifndef VBOX
    929895static inline void tb_reset_jump(TranslationBlock *tb, int n)
    930 #else
    931 DECLINLINE(void) tb_reset_jump(TranslationBlock *tb, int n)
    932 #endif
    933896{
    934897    tb_set_jmp_target(tb, n, (unsigned long)(tb->tc_ptr + tb->tb_next_offset[n]));
     
    10371000#endif /* VBOX */
    10381001
    1039 #ifndef VBOX
    10401002static inline void set_bits(uint8_t *tab, int start, int len)
    1041 #else
    1042 DECLINLINE(void) set_bits(uint8_t *tab, int start, int len)
    1043 #endif
    10441003{
    10451004    int end, mask, end1;
     
    12541213
    12551214/* len must be <= 8 and start must be a multiple of len */
    1256 #ifndef VBOX
    12571215static inline void tb_invalidate_phys_page_fast(target_phys_addr_t start, int len)
    1258 #else
    1259 DECLINLINE(void) tb_invalidate_phys_page_fast(target_phys_addr_t start, int len)
    1260 #endif
    12611216{
    12621217    PageDesc *p;
     
    13561311
    13571312/* add the tb in the target page and protect it if necessary */
    1358 #ifndef VBOX
    13591313static inline void tb_alloc_page(TranslationBlock *tb,
    13601314                                 unsigned int n, target_ulong page_addr)
    1361 #else
    1362 DECLINLINE(void) tb_alloc_page(TranslationBlock *tb,
    1363                                  unsigned int n, target_ulong page_addr)
    1364 #endif
    13651315{
    13661316    PageDesc *p;
     
    15181468static void tb_reset_jump_recursive(TranslationBlock *tb);
    15191469
    1520 #ifndef VBOX
    15211470static inline void tb_reset_jump_recursive2(TranslationBlock *tb, int n)
    1522 #else
    1523 DECLINLINE(void) tb_reset_jump_recursive2(TranslationBlock *tb, int n)
    1524 #endif
    15251471{
    15261472    TranslationBlock *tb1, *tb_next, **ptb;
     
    18991845#if !defined(CONFIG_USER_ONLY)
    19001846
    1901 #ifndef VBOX
    19021847static inline void tlb_flush_jmp_cache(CPUState *env, target_ulong addr)
    1903 #else
    1904 DECLINLINE(void) tlb_flush_jmp_cache(CPUState *env, target_ulong addr)
    1905 #endif
    19061848{
    19071849    unsigned int i;
     
    19641906}
    19651907
    1966 #ifndef VBOX
    19671908static inline void tlb_flush_entry(CPUTLBEntry *tlb_entry, target_ulong addr)
    1968 #else
    1969 DECLINLINE(void) tlb_flush_entry(CPUTLBEntry *tlb_entry, target_ulong addr)
    1970 #endif
    19711909{
    19721910    if (addr == (tlb_entry->addr_read &
     
    20371975}
    20381976
    2039 #ifndef VBOX
    20401977static inline void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry,
    20411978                                         unsigned long start, unsigned long length)
    2042 #else
    2043 DECLINLINE(void) tlb_reset_dirty_range(CPUTLBEntry *tlb_entry,
    2044                                        unsigned long start, unsigned long length)
    2045 #endif
    20461979{
    20471980    unsigned long addr;
     
    21902123}
    21912124
    2192 #ifndef VBOX
    21932125static inline void tlb_set_dirty1(CPUTLBEntry *tlb_entry, target_ulong vaddr)
    2194 #else
    2195 DECLINLINE(void) tlb_set_dirty1(CPUTLBEntry *tlb_entry, target_ulong vaddr)
    2196 #endif
    21972126{
    21982127    if (tlb_entry->addr_write == (vaddr | TLB_NOTDIRTY))
     
    22032132/* update the TLB corresponding to virtual page vaddr and phys addr
    22042133   addr so that it is no longer dirty */
    2205 #ifndef VBOX
    22062134static inline void tlb_set_dirty(CPUState *env,
    22072135                                 unsigned long addr, target_ulong vaddr)
    2208 #else
    2209 DECLINLINE(void) tlb_set_dirty(CPUState *env,
    2210                                unsigned long addr, target_ulong vaddr)
    2211 #endif
    22122136{
    22132137    int i;
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