platform: qemu-virt: Implement system shutdown
authorNick Kossifidis <mickflemm@gmail.com>
Sun, 17 Feb 2019 02:02:15 +0000 (04:02 +0200)
committerAnup Patel <anup@brainfault.org>
Mon, 18 Feb 2019 03:51:58 +0000 (09:21 +0530)
commit51e543511a7425da1a5378e149de0b45928c7111
tree009d721dac74267a56069473cce5212224aaf004
parentb44878b773698f08b4c08b9e43e26917950a7618
platform: qemu-virt: Implement system shutdown

In order for QEMU to be compatible with Spike, it implements
a simple protocol used for reporting back the simulation's
status, through the memory-mapped "test finisher" device. We
use that protocol to make QEMU exit on system shutdown.

Signed-off-by: Nick Kossifidis <mick@ics.forth.gr>
platform/qemu/virt/platform.c