openrisc: define nop command for simulator reboot
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 28 Apr 2022 11:11:39 +0000 (13:11 +0200)
committerStafford Horne <shorne@gmail.com>
Mon, 23 May 2022 08:15:49 +0000 (17:15 +0900)
commit635267b7a8f1746d72d6b23030863f8779618584
tree5fcc891b463653f80dcb6630fcbf57c152d42dbc
parent065b8ced7c40bd6a4444f7005413f7af9fe6b642
openrisc: define nop command for simulator reboot

The simulator defines `l.nop 1` for shutdown, but doesn't have anything
for reboot. Use 13 for this, which is currently unused, dubbed
`NOP_REBOOT`.

Cc: Stafford Horne <shorne@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/all/YmnaDUpVI5ihgvg6@zx2c4.com/
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/process.c