Changeset 36125 in vbox for trunk/src/recompiler/exec-all.h
- Timestamp:
- Mar 1, 2011 4:49:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/exec-all.h
r35346 r36125 112 112 target_phys_addr_t paddr, int prot, 113 113 int mmu_idx, int is_softmmu); 114 #ifndef VBOX115 114 static inline int tlb_set_page(CPUState *env1, target_ulong vaddr, 116 115 target_phys_addr_t paddr, int prot, 117 116 int mmu_idx, int is_softmmu) 118 #else119 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 #endif123 117 { 124 118 if (prot & PAGE_READ) … … 193 187 }; 194 188 195 #ifndef VBOX196 189 static inline unsigned int tb_jmp_cache_hash_page(target_ulong pc) 197 #else198 DECLINLINE(unsigned int) tb_jmp_cache_hash_page(target_ulong pc)199 #endif200 190 { 201 191 target_ulong tmp; … … 204 194 } 205 195 206 #ifndef VBOX207 196 static inline unsigned int tb_jmp_cache_hash_func(target_ulong pc) 208 #else209 DECLINLINE(unsigned int) tb_jmp_cache_hash_func(target_ulong pc)210 #endif211 212 197 { 213 198 target_ulong tmp; … … 217 202 } 218 203 219 #ifndef VBOX220 204 static inline unsigned int tb_phys_hash_func(unsigned long pc) 221 #else222 DECLINLINE(unsigned int) tb_phys_hash_func(unsigned long pc)223 #endif224 205 { 225 206 return pc & (CODE_GEN_PHYS_HASH_SIZE - 1); … … 281 262 282 263 /* set the jump target */ 283 #ifndef VBOX284 264 static inline void tb_set_jmp_target(TranslationBlock *tb, 285 265 int n, unsigned long addr) 286 #else287 DECLINLINE(void) tb_set_jmp_target(TranslationBlock *tb,288 int n, unsigned long addr)289 #endif290 266 { 291 267 tb->tb_next[n] = addr; … … 294 270 #endif 295 271 296 #ifndef VBOX297 272 static inline void tb_add_jump(TranslationBlock *tb, int n, 298 273 TranslationBlock *tb_next) 299 #else300 DECLINLINE(void) tb_add_jump(TranslationBlock *tb, int n,301 TranslationBlock *tb_next)302 #endif303 274 { 304 275 /* NOTE: this test is only needed for thread safety */ … … 384 355 /* NOTE2: the returned address is not exactly the physical address: it 385 356 is the offset relative to phys_ram_base */ 386 #ifndef VBOX387 357 static inline target_ulong get_phys_addr_code(CPUState *env1, target_ulong addr) 388 #else389 DECLINLINE(target_ulong) get_phys_addr_code(CPUState *env1, target_ulong addr)390 #endif391 358 { 392 359 int mmu_idx, page_index, pd; … … 425 392 /* Deterministic execution requires that IO only be performed on the last 426 393 instruction of a TB so that interrupts take effect immediately. */ 427 #ifndef VBOX428 394 static inline int can_do_io(CPUState *env) 429 #else430 DECLINLINE(int) can_do_io(CPUState *env)431 #endif432 395 { 433 396 if (!use_icount)
Note:
See TracChangeset
for help on using the changeset viewer.