Changeset 36125 in vbox for trunk/src/recompiler/exec.c
- Timestamp:
- Mar 1, 2011 4:49:42 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70290
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/exec.c
r35996 r36125 358 358 } 359 359 360 #ifndef VBOX361 360 static inline PageDesc **page_l1_map(target_ulong index) 362 #else363 DECLINLINE(PageDesc **) page_l1_map(target_ulong index)364 #endif365 361 { 366 362 #ifndef VBOX … … 392 388 } 393 389 394 #ifndef VBOX395 390 static inline PageDesc *page_find_alloc(target_ulong index) 396 #else397 DECLINLINE(PageDesc *) page_find_alloc(target_ulong index)398 #endif399 391 { 400 392 PageDesc **lp, *p; … … 427 419 } 428 420 429 #ifndef VBOX430 421 static inline PageDesc *page_find(target_ulong index) 431 #else432 DECLINLINE(PageDesc *) page_find(target_ulong index)433 #endif434 422 { 435 423 PageDesc **lp, *p; … … 497 485 } 498 486 499 #ifndef VBOX500 487 static inline PhysPageDesc *phys_page_find(target_phys_addr_t index) 501 #else502 DECLINLINE(PhysPageDesc *) phys_page_find(target_phys_addr_t index)503 #endif504 488 { 505 489 return phys_page_find_alloc(index, 0); … … 716 700 } 717 701 718 #ifndef VBOX719 702 static inline void invalidate_page_bitmap(PageDesc *p) 720 #else721 DECLINLINE(void) invalidate_page_bitmap(PageDesc *p)722 #endif723 703 { 724 704 if (p->code_bitmap) { … … 852 832 853 833 /* invalidate one TB */ 854 #ifndef VBOX855 834 static inline void tb_remove(TranslationBlock **ptb, TranslationBlock *tb, 856 835 int next_offset) 857 #else858 DECLINLINE(void) tb_remove(TranslationBlock **ptb, TranslationBlock *tb,859 int next_offset)860 #endif861 836 { 862 837 TranslationBlock *tb1; … … 871 846 } 872 847 873 #ifndef VBOX874 848 static inline void tb_page_remove(TranslationBlock **ptb, TranslationBlock *tb) 875 #else876 DECLINLINE(void) tb_page_remove(TranslationBlock **ptb, TranslationBlock *tb)877 #endif878 849 { 879 850 TranslationBlock *tb1; … … 892 863 } 893 864 894 #ifndef VBOX895 865 static inline void tb_jmp_remove(TranslationBlock *tb, int n) 896 #else897 DECLINLINE(void) tb_jmp_remove(TranslationBlock *tb, int n)898 #endif899 866 { 900 867 TranslationBlock *tb1, **ptb; … … 926 893 /* reset the jump entry 'n' of a TB so that it is not chained to 927 894 another TB */ 928 #ifndef VBOX929 895 static inline void tb_reset_jump(TranslationBlock *tb, int n) 930 #else931 DECLINLINE(void) tb_reset_jump(TranslationBlock *tb, int n)932 #endif933 896 { 934 897 tb_set_jmp_target(tb, n, (unsigned long)(tb->tc_ptr + tb->tb_next_offset[n])); … … 1037 1000 #endif /* VBOX */ 1038 1001 1039 #ifndef VBOX1040 1002 static inline void set_bits(uint8_t *tab, int start, int len) 1041 #else1042 DECLINLINE(void) set_bits(uint8_t *tab, int start, int len)1043 #endif1044 1003 { 1045 1004 int end, mask, end1; … … 1254 1213 1255 1214 /* len must be <= 8 and start must be a multiple of len */ 1256 #ifndef VBOX1257 1215 static inline void tb_invalidate_phys_page_fast(target_phys_addr_t start, int len) 1258 #else1259 DECLINLINE(void) tb_invalidate_phys_page_fast(target_phys_addr_t start, int len)1260 #endif1261 1216 { 1262 1217 PageDesc *p; … … 1356 1311 1357 1312 /* add the tb in the target page and protect it if necessary */ 1358 #ifndef VBOX1359 1313 static inline void tb_alloc_page(TranslationBlock *tb, 1360 1314 unsigned int n, target_ulong page_addr) 1361 #else1362 DECLINLINE(void) tb_alloc_page(TranslationBlock *tb,1363 unsigned int n, target_ulong page_addr)1364 #endif1365 1315 { 1366 1316 PageDesc *p; … … 1518 1468 static void tb_reset_jump_recursive(TranslationBlock *tb); 1519 1469 1520 #ifndef VBOX1521 1470 static inline void tb_reset_jump_recursive2(TranslationBlock *tb, int n) 1522 #else1523 DECLINLINE(void) tb_reset_jump_recursive2(TranslationBlock *tb, int n)1524 #endif1525 1471 { 1526 1472 TranslationBlock *tb1, *tb_next, **ptb; … … 1899 1845 #if !defined(CONFIG_USER_ONLY) 1900 1846 1901 #ifndef VBOX1902 1847 static inline void tlb_flush_jmp_cache(CPUState *env, target_ulong addr) 1903 #else1904 DECLINLINE(void) tlb_flush_jmp_cache(CPUState *env, target_ulong addr)1905 #endif1906 1848 { 1907 1849 unsigned int i; … … 1964 1906 } 1965 1907 1966 #ifndef VBOX1967 1908 static inline void tlb_flush_entry(CPUTLBEntry *tlb_entry, target_ulong addr) 1968 #else1969 DECLINLINE(void) tlb_flush_entry(CPUTLBEntry *tlb_entry, target_ulong addr)1970 #endif1971 1909 { 1972 1910 if (addr == (tlb_entry->addr_read & … … 2037 1975 } 2038 1976 2039 #ifndef VBOX2040 1977 static inline void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry, 2041 1978 unsigned long start, unsigned long length) 2042 #else2043 DECLINLINE(void) tlb_reset_dirty_range(CPUTLBEntry *tlb_entry,2044 unsigned long start, unsigned long length)2045 #endif2046 1979 { 2047 1980 unsigned long addr; … … 2190 2123 } 2191 2124 2192 #ifndef VBOX2193 2125 static inline void tlb_set_dirty1(CPUTLBEntry *tlb_entry, target_ulong vaddr) 2194 #else2195 DECLINLINE(void) tlb_set_dirty1(CPUTLBEntry *tlb_entry, target_ulong vaddr)2196 #endif2197 2126 { 2198 2127 if (tlb_entry->addr_write == (vaddr | TLB_NOTDIRTY)) … … 2203 2132 /* update the TLB corresponding to virtual page vaddr and phys addr 2204 2133 addr so that it is no longer dirty */ 2205 #ifndef VBOX2206 2134 static inline void tlb_set_dirty(CPUState *env, 2207 2135 unsigned long addr, target_ulong vaddr) 2208 #else2209 DECLINLINE(void) tlb_set_dirty(CPUState *env,2210 unsigned long addr, target_ulong vaddr)2211 #endif2212 2136 { 2213 2137 int i;
Note:
See TracChangeset
for help on using the changeset viewer.