aboutsummaryrefslogtreecommitdiff
path: root/hw/nx.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-11-01 15:12:50 +1100
committerStewart Smith <stewart@linux.ibm.com>2018-11-01 23:56:44 -0500
commit95f7b3b9698bf59766294ac9705d929723ffe574 (patch)
treebc7d96e3dbc9fddcf4aae6a4c24af8c2c7ca18f6 /hw/nx.c
parent3dd480db1a69e6e458e975563fcc51c6397a7e7d (diff)
downloadskiboot-95f7b3b9698bf59766294ac9705d929723ffe574.zip
skiboot-95f7b3b9698bf59766294ac9705d929723ffe574.tar.gz
skiboot-95f7b3b9698bf59766294ac9705d929723ffe574.tar.bz2
nx: Don't abort on missing NX when using a QEMU machine
These don't have an NX node (and probably never will) as they don't provide any coprocessor. However, the DARN instruction works so this abort is unnecessary. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/nx.c')
-rw-r--r--hw/nx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/nx.c b/hw/nx.c
index 1fedee7..d3746ae 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -45,7 +45,8 @@ static void p9_darn_init(void)
dt_for_each_compatible(dt_root, nx, "ibm,power9-nx")
break;
if (!nx) {
- assert(nx);
+ if (!dt_node_is_compatible(dt_root, "qemu,powernv"))
+ assert(nx);
return;
}