aboutsummaryrefslogtreecommitdiff
path: root/accel/accel-common.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-06-24 12:38:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-07-09 18:21:33 +0200
commitf934907a8b72cf315e5f587794a60d451d489672 (patch)
treec939a6655fb85b884ce867b2be13017f8a004ea2 /accel/accel-common.c
parentf76585efce3e3fe30c75efe9d126d5ebebd0b5f1 (diff)
downloadqemu-f934907a8b72cf315e5f587794a60d451d489672.zip
qemu-f934907a8b72cf315e5f587794a60d451d489672.tar.gz
qemu-f934907a8b72cf315e5f587794a60d451d489672.tar.bz2
accel: autoload modules
Call module_object_class_by_name() instead of object_class_by_name() for objects possibly implemented as module Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jose R. Ziviani <jziviani@suse.de> Message-Id: <20210624103836.2382472-26-kraxel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/accel-common.c')
-rw-r--r--accel/accel-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/accel-common.c b/accel/accel-common.c
index cf07f78..7b8ec7e 100644
--- a/accel/accel-common.c
+++ b/accel/accel-common.c
@@ -44,7 +44,7 @@ static const TypeInfo accel_type = {
AccelClass *accel_find(const char *opt_name)
{
char *class_name = g_strdup_printf(ACCEL_CLASS_NAME("%s"), opt_name);
- AccelClass *ac = ACCEL_CLASS(object_class_by_name(class_name));
+ AccelClass *ac = ACCEL_CLASS(module_object_class_by_name(class_name));
g_free(class_name);
return ac;
}