diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-11-01 15:12:50 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-11-01 23:56:44 -0500 |
commit | 95f7b3b9698bf59766294ac9705d929723ffe574 (patch) | |
tree | bc7d96e3dbc9fddcf4aae6a4c24af8c2c7ca18f6 /hw | |
parent | 3dd480db1a69e6e458e975563fcc51c6397a7e7d (diff) | |
download | skiboot-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')
-rw-r--r-- | hw/nx.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |