summary refs log tree commit diff stats
path: root/include/hw/timer/mss-timer.h
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-06-15 14:57:15 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-06-15 15:23:34 +0100
commitacd9575e59da1bfc21a1feccb00c5dddd45328f7 (patch)
tree38d5dfee59be8fcecd839cb8b85c7c55dc46680b /include/hw/timer/mss-timer.h
parent29b80469dc51ae4064e9ef9223967882d2610523 (diff)
downloadfocaccia-qemu-acd9575e59da1bfc21a1feccb00c5dddd45328f7.tar.gz
focaccia-qemu-acd9575e59da1bfc21a1feccb00c5dddd45328f7.zip
aspeed_scu: Implement RNG register
The ASPEED SoCs contain a single register that returns random data when
read. This models that register so that guests can use it.

The random number data register has a corresponding control register,
however it returns data regardless of the state of the enabled bit, so
the model follows this behaviour.

When the qcrypto call fails we exit as the guest uses the random number
device to feed it's entropy pool, which is used for cryptographic
purposes.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Message-id: 20180613114836.9265-1-joel@jms.id.au
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/timer/mss-timer.h')
0 files changed, 0 insertions, 0 deletions