diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-07-04 13:06:35 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-07-04 13:15:22 +0100 |
commit | a19861666b574f54c71d1fea9a8d8a84915dfa70 (patch) | |
tree | 4a3d6fc5d9bb3f7a4b55b15ee4cfb81625dc6ed9 /crypto/pbkdf-nettle.c | |
parent | 39e0b03dec518254fabd2acff29548d3f1d2b754 (diff) | |
download | qemu-a19861666b574f54c71d1fea9a8d8a84915dfa70.tar.gz qemu-a19861666b574f54c71d1fea9a8d8a84915dfa70.tar.bz2 qemu-a19861666b574f54c71d1fea9a8d8a84915dfa70.zip |
armv7m_nvic: Use qemu_get_cpu(0) instead of current_cpu
Starting QEMU with -S results in current_cpu containing its initial
value of NULL. It is however possible to connect to such QEMU instance
and query various CPU registers, one example being CPUID, and doing that
results in QEMU segfaulting.
Using qemu_get_cpu(0) seem reasonable enough given that ARMv7M
architecture is a single core architecture.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'crypto/pbkdf-nettle.c')
0 files changed, 0 insertions, 0 deletions