Received: from eggs.gnu.org ([140.186.70.92]:53166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9a1F-0000td-UH for qemu-devel@nongnu.org; Tue, 12 Apr 2011 05:36:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9a1D-00047e-Md for qemu-devel@nongnu.org; Tue, 12 Apr 2011 05:36:21 -0400 Received: from adelie.canonical.com ([91.189.90.139]:55749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9a1D-00047G-D1 for qemu-devel@nongnu.org; Tue, 12 Apr 2011 05:36:19 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Q9a1B-0007rc-Ab for ; Tue, 12 Apr 2011 09:36:17 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 54D1B2E8B6A for ; Tue, 12 Apr 2011 09:35:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Apr 2011 09:29:08 -0000 From: Peter Maydell Sender: bounces@canonical.com References: <20110411161233.16764.21820.malonedeb@soybean.canonical.com> Message-Id: <20110412092908.16689.49602.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 757702] Re: Undefined instruction exception starts at offset 0x8 instead of 0x4 Reply-To: Bug 757702 <757702@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I can't reproduce this (either with current trunk or with qemu 0.14.0 release version). Also, if we were directing UNDEF exceptions to the SVC entry point I think it would cause fairly obvious breakage of Linux guests. I'm going to attach the test program I used to confirm that we are correctly directing the exception to the 0x4 vector: ./arm-softmmu/qemu-system-arm -kernel ~/linaro/qemu-misc-tests/undef-exc.ax= f -semihosting Starting test In undef vector I'll also attach the binary, since it's only 2K and the source needs armcc to build. If you can provide a simple test program and qemu command line which demonstrates the behaviour you think is incorrect I can investigate further. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/757702 Title: Undefined instruction exception starts at offset 0x8 instead of 0x4 Status in QEMU: New Bug description: ARMv7a has lot of undefined instruction from its instruction opcode space. This undefined instructions are very useful for replacing sensitive non-priviledged instructions of guest operating systems (virtualization). The undefined instruction exception executes at + 0x4, where can be 0x0 or 0xfff00000. Currently, in qemu 0.14.0 undefined instruction fault at 0x8 offset instead of 0x4. This was not a problem with qemu 0.13.0, seems like this is a new bug. As as example, if we try to execute value "0xec019800" in qemu 0.14.0 then it should cause undefined exception at +0x4 since "0xec019800" is an undefined instruction.