Skip to content

Commit

Permalink
plat/qemu: use "/qemu" device tree node to identify the QEMU platform
Browse files Browse the repository at this point in the history
This was merged in the QEMU 4.3 stream.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
[oliver: put the old compat checks back in]
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
legoater authored and oohal committed Nov 14, 2019
1 parent a810d1f commit 721ef0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/chip.c
Expand Up @@ -132,7 +132,8 @@ void init_chips(void)
/* 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")) {
dt_node_is_compatible(dt_root, "qemu,powernv9") ||
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");
Expand Down

0 comments on commit 721ef0d

Please sign in to comment.