diff options
author | Pierrick Bouvier <pierrick.bouvier@linaro.org> | 2024-09-18 21:46:21 -0700 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-09-24 13:53:35 +0200 |
commit | f4fa1a5350f2b1837413245ed6704e5e5b90db57 (patch) | |
tree | bcdf89c31eb919a4482d6895d68fdff036c2c546 /target/i386 | |
parent | fe1f1a8070a7c28ca371d35b48eda6db31349a3c (diff) | |
download | qemu-f4fa1a5350f2b1837413245ed6704e5e5b90db57.zip qemu-f4fa1a5350f2b1837413245ed6704e5e5b90db57.tar.gz qemu-f4fa1a5350f2b1837413245ed6704e5e5b90db57.tar.bz2 |
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>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/kvm/kvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index ada581c..c8056ef 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -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) @@ -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; |