makes reboot and poweroff work with qemu
ok kettenis@
# Platform Level Interrupt Controller
plic* at simplebus? early 1
+syscon* at fdt? early 1
scsibus* at scsi?
sd* at scsibus?
-# $OpenBSD: RAMDISK,v 1.1 2021/04/23 02:42:16 drahn Exp $
+# $OpenBSD: RAMDISK,v 1.2 2021/04/23 12:49:53 jsg Exp $
#
# GENERIC machine description file
#
# Platform Level Interrupt Controller
plic* at simplebus? early 1
+syscon* at fdt? early 1
scsibus* at scsi?
sd* at scsibus?
-/* $OpenBSD: syscon.c,v 1.5 2021/04/23 12:38:00 kettenis Exp $ */
+/* $OpenBSD: syscon.c,v 1.6 2021/04/23 12:49:53 jsg Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
#ifdef __armv7__
#include <arm/simplebus/simplebusvar.h>
+#elif defined(__riscv64__)
+#include <riscv64/dev/simplebusvar.h>
#else
#include <arm64/dev/simplebusvar.h>
#endif