This reverts commit 1b879fe489f8894c5b07438f0b10706db916ca4f.

The conditional registration is no longer required since the
base class is now using a target independent name.

Signed-off-by: Daniel P. Berrangé <[email protected]>
---
 accel/whpx/whpx-common.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/accel/whpx/whpx-common.c b/accel/whpx/whpx-common.c
index 20c684638b0..78d2827809b 100644
--- a/accel/whpx/whpx-common.c
+++ b/accel/whpx/whpx-common.c
@@ -20,7 +20,6 @@
 #include "hw/core/boards.h"
 #include "hw/intc/ioapic.h"
 #include "qemu/error-report.h"
-#include "qemu/target-info.h"
 #include "qapi/error.h"
 #include "qapi/qapi-types-common.h"
 #include "qapi/qapi-type-infos-common.h"
@@ -493,18 +492,11 @@ static void whpx_cpu_accel_class_init(ObjectClass *oc, 
const void *data)
     acc->cpu_instance_init = whpx_cpu_instance_init;
 }
 
-/* TYPE_ACCEL_CPU is only registered for current target cpu type */
-static bool whpx_cpu_accel_is_available(void)
-{
-    return !strcmp(target_cpu_type(), CPU_RESOLVING_TYPE);
-}
-
 static const TypeInfo whpx_cpu_accel_type = {
     .name = ACCEL_CPU_NAME("whpx"),
 
     .parent = TYPE_ACCEL_CPU,
     .class_init = whpx_cpu_accel_class_init,
-    .is_available = whpx_cpu_accel_is_available,
     .abstract = true,
 };
 
-- 
2.56.1


Reply via email to