[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v2 03/18] s390x/tcg: simplify lookup of flic
From: |
David Hildenbrand |
Subject: |
[qemu-s390x] [PATCH v2 03/18] s390x/tcg: simplify lookup of flic |
Date: |
Wed, 17 Jan 2018 18:40:32 +0100 |
We can simply search for an object of our common type.
Signed-off-by: David Hildenbrand <address@hidden>
---
hw/intc/s390_flic.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c
index fc244fe775..ba1aa40eba 100644
--- a/hw/intc/s390_flic.c
+++ b/hw/intc/s390_flic.c
@@ -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;
}
--
2.14.3
- [qemu-s390x] [PATCH v2 00/18] s390x: flic rework, tcg flic support and STSI, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 01/18] s390x/tcg: deliver multiple interrupts in a row, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 02/18] s390x/flic: simplify flic initialization, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 03/18] s390x/tcg: simplify lookup of flic,
David Hildenbrand <=
- [qemu-s390x] [PATCH v2 04/18] s390x/tcg: simplify machine check handling, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 05/18] s390x/flic: factor out injection of floating interrupts, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 06/18] s390x/flic: no need to call s390_io_interrupt() from flic, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 07/18] s390x/tcg: tolerate wrong wakeups due to floating interrupts, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 09/18] s390x/tcg: implement TEST PENDING INTERRUPTION, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 08/18] s390x/flic: make floating interrupts on TCG actually floating, David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 10/18] s390x/flic: implement qemu_s390_clear_io_flic(), David Hildenbrand, 2018/01/17
- [qemu-s390x] [PATCH v2 12/18] s390x: fix size + content of STSI blocks, David Hildenbrand, 2018/01/17