Commit f6dfb835 authored by Eduardo Habkost's avatar Eduardo Habkost Committed by Paolo Bonzini
Browse files

accel: Make AccelClass.available() optional

When we move accel classes outside accel.c, the available() function
won't be necessary anymore, because the classes will be registered only
if the accelerator code is really enabled at build time.
Reviewed-by: default avatarPaolo Bonzini <>
Signed-off-by: default avatarEduardo Habkost <>
Signed-off-by: default avatarPaolo Bonzini <>
parent b14a0b74
......@@ -82,7 +82,7 @@ int configure_accelerator(MachineClass *mc)
fprintf(stderr, "\"%s\" accelerator does not exist.\n", buf);
if (!acc->available()) {
if (acc->available && !acc->available()) {
printf("%s not supported for this target\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment