]> Git Repo - qemu.git/commitdiff
cputlb: Use qemu_build_not_reached in load/store_helpers
authorRichard Henderson <[email protected]>
Mon, 23 Sep 2019 21:14:31 +0000 (14:14 -0700)
committerRichard Henderson <[email protected]>
Wed, 25 Sep 2019 17:23:45 +0000 (10:23 -0700)
Increase the current runtime assert to a compile-time assert.

Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
accel/tcg/cputlb.c

index 2222b877640554852ac38f495a151f9947580b22..e31378bce3180c4e9059b35c31765d76e673117e 100644 (file)
@@ -1396,7 +1396,7 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,
         res = ldq_le_p(haddr);
         break;
     default:
-        g_assert_not_reached();
+        qemu_build_not_reached();
     }
 
     return res;
@@ -1680,8 +1680,7 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val,
         stq_le_p(haddr, val);
         break;
     default:
-        g_assert_not_reached();
-        break;
+        qemu_build_not_reached();
     }
 }
 
This page took 0.023541 seconds and 4 git commands to generate.