Changeset 13382 in vbox for trunk/src/recompiler_new/exec-all.h
- Timestamp:
- Oct 19, 2008 8:45:30 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 38111
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/exec-all.h
r13337 r13382 112 112 target_phys_addr_t paddr, int prot, 113 113 int mmu_idx, int is_softmmu); 114 #ifndef VBOX 114 115 static inline int tlb_set_page(CPUState *env1, target_ulong vaddr, 115 116 target_phys_addr_t paddr, int prot, 116 117 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 117 123 { 118 124 if (prot & PAGE_READ) … … 190 196 }; 191 197 198 #ifndef VBOX 192 199 static inline unsigned int tb_jmp_cache_hash_page(target_ulong pc) 200 #else 201 DECLINLINE(unsigned int) tb_jmp_cache_hash_page(target_ulong pc) 202 #endif 193 203 { 194 204 target_ulong tmp; … … 197 207 } 198 208 209 #ifndef VBOX 199 210 static inline unsigned int tb_jmp_cache_hash_func(target_ulong pc) 211 #else 212 DECLINLINE(unsigned int) tb_jmp_cache_hash_func(target_ulong pc) 213 #endif 214 200 215 { 201 216 target_ulong tmp; … … 205 220 } 206 221 222 #ifndef VBOX 207 223 static inline unsigned int tb_phys_hash_func(unsigned long pc) 224 #else 225 DECLINLINE(unsigned int) tb_phys_hash_func(unsigned long pc) 226 #endif 208 227 { 209 228 return pc & (CODE_GEN_PHYS_HASH_SIZE - 1); … … 265 284 266 285 /* set the jump target */ 286 #ifndef VBOX 267 287 static inline void tb_set_jmp_target(TranslationBlock *tb, 268 288 int n, unsigned long addr) 289 #else 290 DECLINLINE(void) tb_set_jmp_target(TranslationBlock *tb, 291 int n, unsigned long addr) 292 #endif 269 293 { 270 294 tb->tb_next[n] = addr; … … 273 297 #endif 274 298 299 #ifndef VBOX 275 300 static inline void tb_add_jump(TranslationBlock *tb, int n, 276 301 TranslationBlock *tb_next) 302 #else 303 DECLINLINE(void) tb_add_jump(TranslationBlock *tb, int n, 304 TranslationBlock *tb_next) 305 #endif 277 306 { 278 307 /* NOTE: this test is only needed for thread safety */ … … 361 390 /* NOTE2: the returned address is not exactly the physical address: it 362 391 is the offset relative to phys_ram_base */ 392 #ifndef VBOX 363 393 static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr) 394 #else 395 DECLINLINE(target_ulong) get_phys_addr_code(CPUState *env, target_ulong addr) 396 #endif 364 397 { 365 398 int is_user, index, pd; … … 381 414 #error unimplemented CPU 382 415 #endif 416 #ifndef VBOX 383 417 if (__builtin_expect(env->tlb_table[is_user][index].addr_code != 384 418 (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 385 423 ldub_code(addr); 386 424 } … … 406 444 /* Deterministic execution requires that IO only be performed on the last 407 445 instruction of a TB so that interrupts take effect immediately. */ 446 #ifndef VBOX 408 447 static inline int can_do_io(CPUState *env) 448 #else 449 DECLINLINE(int) can_do_io(CPUState *env) 450 #endif 409 451 { 410 452 if (!use_icount)
Note:
See TracChangeset
for help on using the changeset viewer.