aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2019-04-22 18:04:48 -0300
committerThomas Huth <thuth@redhat.com>2019-05-02 16:56:33 +0200
commit8d006d4bc2ab4f72877d8bd47cba9aa8d24b54d0 (patch)
treee397ba37ab917841af565eb2950cb40915615888
parenta08052bc248632f8c16ef0c5b93e0611543e89cc (diff)
downloadqemu-8d006d4bc2ab4f72877d8bd47cba9aa8d24b54d0.zip
qemu-8d006d4bc2ab4f72877d8bd47cba9aa8d24b54d0.tar.gz
qemu-8d006d4bc2ab4f72877d8bd47cba9aa8d24b54d0.tar.bz2
accel: Remove unused AccelClass::available field
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>
-rw-r--r--accel/accel.c5
-rw-r--r--include/sysemu/accel.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/accel/accel.c b/accel/accel.c
index 454fef9..5fa3171 100644
--- a/accel/accel.c
+++ b/accel/accel.c
@@ -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;
diff --git a/include/sysemu/accel.h b/include/sysemu/accel.h
index 5565e00..70e9e2f 100644
--- a/include/sysemu/accel.h
+++ b/include/sysemu/accel.h
@@ -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;