]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
cputlb: Use qemu_build_not_reached in load/store_helpers
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 23 Sep 2019 21:14:31 +0000 (14:14 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
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 <david@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
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();
     }
 }