diff options
| author | Andrey Smirnov | 2016-07-04 14:06:35 +0200 |
|---|---|---|
| committer | Peter Maydell | 2016-07-04 14:15:22 +0200 |
| commit | a19861666b574f54c71d1fea9a8d8a84915dfa70 (patch) | |
| tree | 4a3d6fc5d9bb3f7a4b55b15ee4cfb81625dc6ed9 /memory_mapping.c | |
| parent | memory: Assert that memory_region_init_rom_device() ops aren't NULL (diff) | |
| download | qemu-a19861666b574f54c71d1fea9a8d8a84915dfa70.tar.gz qemu-a19861666b574f54c71d1fea9a8d8a84915dfa70.tar.xz 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 'memory_mapping.c')
0 files changed, 0 insertions, 0 deletions
