From e92a883ffee93a8b811992b92b8a31ed54400c13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 28 Jan 2020 18:28:59 +0100 Subject: [PATCH] accel/accel: Make TYPE_ACCEL abstract MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is no generic acceleration, we have to use specific implementations. Make the base class abstract. Fixes: b14a0b7469fa ("accel: Use QOM classes for accel types") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cornelia Huck Message-Id: <20200129212345.20547-3-philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- accel/accel-target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/accel/accel-target.c b/accel/accel-target.c index 08626c00c2..3236d6335b 100644 --- a/accel/accel-target.c +++ b/accel/accel-target.c @@ -38,6 +38,7 @@ static const TypeInfo accel_type = { .parent = TYPE_OBJECT, .class_size = sizeof(AccelClass), .instance_size = sizeof(AccelState), + .abstract = true, }; /* Lookup AccelClass from opt_name. Returns NULL if not found */ -- 2.30.2