From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nll1h-0000Vo-SX for qemu-devel@nongnu.org; Sun, 28 Feb 2010 10:25:49 -0500 Received: from [199.232.76.173] (port=53697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nll1h-0000VZ-6S for qemu-devel@nongnu.org; Sun, 28 Feb 2010 10:25:49 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nll1e-00029G-BQ for qemu-devel@nongnu.org; Sun, 28 Feb 2010 10:25:49 -0500 Received: from mail2.shareable.org ([80.68.89.115]:34499) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nll1e-00028X-1f for qemu-devel@nongnu.org; Sun, 28 Feb 2010 10:25:46 -0500 Date: Sun, 28 Feb 2010 15:25:42 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] [Bug] qemu-system-ppc: "invalid/unsupported opcode" during debug session Message-ID: <20100228152542.GA28486@shareable.org> References: <4B3A1B9D.7010004@mail.berlios.de> <20100228131830.GJ10291@volta.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100228131830.GJ10291@volta.aurel32.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: QEMU Developers Aurelien Jarno wrote: > It is not a full fix, as the OS can actually use any instruction that > always generate a trap (even a memory access) as an instruction barrier > to make sure the following instructions are never executed. This > actually affects all targets, but is unlikely to happen. I'm sure I've seen code wich intentionally accesses invalid memory, followed by non-instruction data such as a message to print. But I can't think where. > One solution for that would be to only generate an exception for an > unsupported instruction when it is the first instruction of a TB, and > otherwise just end the translation before this instruction. Because that's a simple general solution for all targets, it sounds like a good idea to me. -- Jamie