target/i386/kvm: replace assert(false) with g_assert_not_reached()
This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20240919044641.386068-15-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
fe1f1a8070
commit
f4fa1a5350
@ -5771,7 +5771,7 @@ static int kvm_handle_rdmsr(X86CPU *cpu, struct kvm_run *run)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(false);
|
g_assert_not_reached();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run)
|
static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run)
|
||||||
@ -5790,7 +5790,7 @@ static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(false);
|
g_assert_not_reached();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool has_sgx_provisioning;
|
static bool has_sgx_provisioning;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user