Re: [Qemu-devel] [RFC PATCH] armv7m_nvic: Use qemu_get_cpu(0) instead of current_cpu

2016-06-30 Thread Peter Maydell
On 28 June 2016 at 22:44, Andrey Smirnov wrote: > 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 >

[Qemu-devel] [RFC PATCH] armv7m_nvic: Use qemu_get_cpu(0) instead of current_cpu

2016-06-28 Thread Andrey Smirnov
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