[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/8] accel: Remove unused AccelClass::available field
From: |
Thomas Huth |
Subject: |
[Qemu-devel] [PULL 4/8] accel: Remove unused AccelClass::available field |
Date: |
Thu, 2 May 2019 18:13:06 +0200 |
From: Eduardo Habkost <address@hidden>
The field is not used anymore, we can remove it.
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden> [on mingw64]
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
---
accel/accel.c | 5 -----
include/sysemu/accel.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/accel/accel.c b/accel/accel.c
index 454fef9d92..5fa31717b4 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 5565e00a96..70e9e2f2a1 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;
--
2.21.0
- [Qemu-devel] [PULL 0/8] qtest and misc patches, Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 1/8] gitlab-ci.yml: Test the TCG interpreter in a CI pipeline, Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 2/8] qtest: Move accel code to accel/qtest.c, Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 3/8] qtest: Don't compile qtest accel on non-POSIX systems, Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 4/8] accel: Remove unused AccelClass::available field,
Thomas Huth <=
- [Qemu-devel] [PULL 5/8] configure: Add -Wno-typedef-redefinition to CFLAGS (for Clang), Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 6/8] configure: Remove old *-config-devices.mak.d files when running configure, Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 7/8] configure: Relax check for libseccomp, Thomas Huth, 2019/05/02
- [Qemu-devel] [PULL 8/8] hw/pci-host: Use object_initialize_child for correct reference counting, Thomas Huth, 2019/05/02
- Re: [Qemu-devel] [PULL 0/8] qtest and misc patches, Peter Maydell, 2019/05/03