From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcQb-00055L-Ex for qemu-devel@nongnu.org; Thu, 30 Jun 2016 09:54:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIcQZ-0006PS-FN for qemu-devel@nongnu.org; Thu, 30 Jun 2016 09:54:48 -0400 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:36080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcQZ-0006PG-36 for qemu-devel@nongnu.org; Thu, 30 Jun 2016 09:54:47 -0400 Received: by mail-vk0-x22f.google.com with SMTP id m127so50837334vkb.3 for ; Thu, 30 Jun 2016 06:54:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1467150268-11038-1-git-send-email-andrew.smirnov@gmail.com> References: <1467150268-11038-1-git-send-email-andrew.smirnov@gmail.com> From: Peter Maydell Date: Thu, 30 Jun 2016 14:54:26 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [RFC PATCH] armv7m_nvic: Use qemu_get_cpu(0) instead of current_cpu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Smirnov Cc: qemu-arm , QEMU Developers 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 > 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 > --- > hw/intc/armv7m_nvic.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Applied to target-arm.next, thanks. -- PMM