[Skiboot] [PATCH 1/2] plat/qemu: use "/qemu" device tree node to identify the QEMU platform
Cédric Le Goater
clg at kaod.org
Fri Nov 8 04:55:52 AEDT 2019
This was merged in the QEMU 4.3 stream.
Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
core/chip.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/core/chip.c b/core/chip.c
index 45733573b6e1..b87262de273f 100644
--- a/core/chip.c
+++ b/core/chip.c
@@ -130,9 +130,7 @@ void init_chips(void)
prlog(PR_NOTICE, "CHIP: Detected Awan emulator\n");
}
/* Detect Qemu */
- if (dt_node_is_compatible(dt_root, "qemu,powernv") ||
- dt_node_is_compatible(dt_root, "qemu,powernv8") ||
- dt_node_is_compatible(dt_root, "qemu,powernv9")) {
+ if (dt_find_by_path(dt_root, "/qemu")) {
proc_chip_quirks |= QUIRK_QEMU | QUIRK_NO_CHIPTOD
| QUIRK_NO_DIRECT_CTL | QUIRK_NO_RNG;
prlog(PR_NOTICE, "CHIP: Detected QEMU simulator\n");
--
2.21.0
More information about the Skiboot
mailing list