mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
s390x/tcg: simplify lookup of flic
We can simply search for an object of our common type. Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180129125623.21729-4-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
e2ac12f014
commit
b03d9970c4
1 changed files with 3 additions and 5 deletions
|
@ -27,11 +27,9 @@ S390FLICState *s390_get_flic(void)
|
|||
static S390FLICState *fs;
|
||||
|
||||
if (!fs) {
|
||||
fs = S390_FLIC_COMMON(object_resolve_path(TYPE_KVM_S390_FLIC, NULL));
|
||||
if (!fs) {
|
||||
fs = S390_FLIC_COMMON(object_resolve_path(TYPE_QEMU_S390_FLIC,
|
||||
NULL));
|
||||
}
|
||||
fs = S390_FLIC_COMMON(object_resolve_path_type("",
|
||||
TYPE_S390_FLIC_COMMON,
|
||||
NULL));
|
||||
}
|
||||
return fs;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue