mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Convert remaining __builtin_expect to likely/unlikely, by Jan Kiszka.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4840 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
06e80fc927
commit
551bd27f22
9 changed files with 19 additions and 19 deletions
|
@ -61,7 +61,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr)
|
|||
D(fprintf(logfile, "%s pc=%x tpc=%x ra=%x\n", __func__,
|
||||
env->pc, env->debug1, retaddr));
|
||||
ret = cpu_cris_handle_mmu_fault(env, addr, is_write, mmu_idx, 1);
|
||||
if (__builtin_expect(ret, 0)) {
|
||||
if (unlikely(ret)) {
|
||||
if (retaddr) {
|
||||
/* now we have a real cpu fault */
|
||||
pc = (unsigned long)retaddr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue