]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel: Remove unused AccelClass::available field
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 22 Apr 2019 21:04:48 +0000 (18:04 -0300)
committerThomas Huth <thuth@redhat.com>
Thu, 2 May 2019 14:56:33 +0000 (16:56 +0200)
The field is not used anymore, we can remove it.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190422210448.2488-4-ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> [on mingw64]
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
accel/accel.c
include/sysemu/accel.h

index 454fef9d926f772c3cca0a1cdf98840d4b574942..5fa31717b48206633ce7db4a62400f2436442ebd 100644 (file)
@@ -107,11 +107,6 @@ void configure_accelerator(MachineState *ms, const char *progname)
         if (!acc) {
             continue;
         }
-        if (acc->available && !acc->available()) {
-            printf("%s not supported for this target\n",
-                   acc->name);
-            continue;
-        }
         ret = accel_init_machine(acc, ms);
         if (ret < 0) {
             init_failed = true;
index 5565e00a96136bc5024c17c401116ef6a497138a..70e9e2f2a1cb28dfebb52142b4cc2e92290b4eab 100644 (file)
@@ -38,7 +38,6 @@ typedef struct AccelClass {
 
     const char *opt_name;
     const char *name;
-    int (*available)(void);
     int (*init_machine)(MachineState *ms);
     void (*setup_post)(MachineState *ms, AccelState *accel);
     bool *allowed;