[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 22/39] target/i386/kvm: replace assert(false) with g_assert_not_r
From: |
Pierrick Bouvier |
Subject: |
[PATCH 22/39] target/i386/kvm: replace assert(false) with g_assert_not_reached() |
Date: |
Tue, 10 Sep 2024 15:15:49 -0700 |
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
target/i386/kvm/kvm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index 2fa88ef1e37..308b0e1cb37 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -5770,7 +5770,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)
@@ -5789,7 +5789,7 @@ static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run
*run)
}
}
- assert(false);
+ g_assert_not_reached();
}
static bool has_sgx_provisioning;
--
2.39.2
- [PATCH 17/39] hw/net: replace assert(false) with g_assert_not_reached(), (continued)
- [PATCH 21/39] migration: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 22/39] target/i386/kvm: replace assert(false) with g_assert_not_reached(),
Pierrick Bouvier <=
- [PATCH 19/39] hw/pci: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 23/39] tests/qtest: replace assert(false) with g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 24/39] accel/tcg: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 26/39] hw/acpi: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 27/39] hw/gpio: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10
- [PATCH 25/39] block: remove break after g_assert_not_reached(), Pierrick Bouvier, 2024/09/10