From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPsz3-0001g7-50 for qemu-devel@nongnu.org; Mon, 14 Nov 2011 04:37:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPsyy-0000Vm-UM for qemu-devel@nongnu.org; Mon, 14 Nov 2011 04:37:45 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:52725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPsyy-0000Vd-Mq for qemu-devel@nongnu.org; Mon, 14 Nov 2011 04:37:40 -0500 Message-ID: <4EC0E159.2030906@adacore.com> Date: Mon, 14 Nov 2011 10:37:29 +0100 From: Fabien Chouteau MIME-Version: 1.0 References: <1320333464-12967-1-git-send-email-chouteau@adacore.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] [SPARC] Improve "ta 0" shutdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On 13/11/2011 10:43, Blue Swirl wrote: > On Thu, Nov 3, 2011 at 15:17, Fabien Chouteau wrote: >> This patch replace the previous implementation with this simplified and >> more complete version (no shutdown when psret == 1). > > In order to get in 1.0, the change should be limited to adding only a > psret check to current helper_shutdown(). This way it should be also > possible to retain the CPU feature check in translation time instead > of pushing it to do_interrupt path, so it should be a better for > performance anyway. > The purpose of this feature is to know when we get to this error state (trap when interrupts disabled), if we abort with an error message or just shutdown the emulator. In any case it's the end of the emulation, it happens only once, so performance is not important here. For 1.0, I can do another intermediate patch. -- Fabien Chouteau