Received: from [140.186.70.92] (port=44031 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pt55P-0006zU-EC for qemu-devel@nongnu.org; Fri, 25 Feb 2011 16:20:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pt55J-0000SM-D0 for qemu-devel@nongnu.org; Fri, 25 Feb 2011 16:20:27 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]:56877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pt55J-0000S3-7m for qemu-devel@nongnu.org; Fri, 25 Feb 2011 16:20:21 -0500 Date: Fri, 25 Feb 2011 22:20:16 +0100 From: Adam Lackorzynski Message-ID: <20110225212016.GB32544@os.inf.tu-dresden.de> References: <1298646252-24169-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1298646252-24169-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] Re: [PATCH] target-arm: Don't decode old cp15 WFI instructions on v7 cores List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org On Fri Feb 25, 2011 at 15:04:12 +0000, Peter Maydell wrote: > In v7 of the ARM architecture, WFI (wait for interrupt) is a first-class > instruction, but in previous versions this functionality was provided > via a cp15 coprocessor register. Add correct feature checks to the > decoding of the cp15 WFI instructions so that they behave correctly > for newer cores. In particular, the old 0,c7,c8,2 encoding used on > ARM940 has been reused for VA-to-PA translation in v6 and v7. > > Signed-off-by: Peter Maydell Reviewed-by: Adam Lackorzynski > --- > This patch stands alone as a fix to target-arm; it's a prerequisite > for Adam's VA->PA translation patch, because otherwise attempting a > user-read translation will get you a WFI instead... Thanks, (un)fortunately I never triggered this case in my setup. Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/