summary refs log tree commit diff stats
path: root/target/openrisc/sys_helper.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-06-22 13:45:13 +0200
committerStafford Horne <shorne@gmail.com>2022-09-04 07:02:57 +0100
commitc6fe3e6b4cd8d7b98ea37bf37fb3686ecd1304fe (patch)
treefea96c40212746ca105b320ee9eeb6675dc61f6c /target/openrisc/sys_helper.c
parent66564c31e4e012c65c84d403c2dc14c0a754047f (diff)
downloadfocaccia-qemu-c6fe3e6b4cd8d7b98ea37bf37fb3686ecd1304fe.tar.gz
focaccia-qemu-c6fe3e6b4cd8d7b98ea37bf37fb3686ecd1304fe.zip
hw/openrisc: virt: pass random seed to fdt
If the FDT contains /chosen/rng-seed, then the Linux RNG will use it to
initialize early. Set this using the usual guest random number
generation function. This is confirmed to successfully initialize the
RNG on Linux 5.19-rc2.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'target/openrisc/sys_helper.c')
0 files changed, 0 insertions, 0 deletions