From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCxuv-0006y9-VQ for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:57:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCxus-0006rv-93 for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:57:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCxus-0006rs-4Z for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:57:54 -0500 Received: from mail.sysgo.com ([62.8.134.5]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCxur-0000NG-Hq for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:57:53 -0500 Received: from donald.sysgo.com (unknown [172.20.1.30]) by mail.sysgo.com (Postfix) with ESMTP id 52065E4002 for ; Thu, 10 Jan 2008 14:57:49 +0100 (CET) Received: from mag-lap.sysgo.com (mag-lap.sysgo.com [172.22.7.12]) by donald.sysgo.com (Postfix) with ESMTP id 48804284325 for ; Thu, 10 Jan 2008 14:57:51 +0100 (CET) Date: Thu, 10 Jan 2008 14:57:50 +0100 (CET) From: Marius Groeger Sender: mag@sysgo.com Subject: Re: [PATCH][Qemu-devel] Single stepping for PPC broken! In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1765038712-1199973470=:20346" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1765038712-1199973470=:20346 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 9 Jan 2008, Marius Groeger wrote: > On Wed, 9 Jan 2008, Marius Groeger wrote: > > > I'm having problems with qemu's (-M prep, -cpu 604) handling of the > > MSR_SE bit. My gdbstub can successfully step along regular code, but > > qemu chokes when stepping over a branch instruction like "blr". > > (Needless to say, that same gdbstub works fine on real hardware). I > > tried older versions of qemu and found that the code base 8 months ago > > worked fine. > > I have now verified with booting a Linux image into qemu-system-ppc - same > problem. When stepi'ing over the following sequence, the system chokes on a > "bl" instruction: The attached patch fixes the problem, but I have to admit I can't tell for sure if this doesn't break other things (such as qemu's built-in GDB server). Could some QEMU ppc expert please comment on this? Thanks Marius -- Marius Groeger SYSGO AG Embedded and Real-Time Software Voice: +49 6136 9948 0 FAX: +49 6136 9948 10 www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com --8323328-1765038712-1199973470=:20346 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=ppc-singlestep.diff Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=ppc-singlestep.diff SW5kZXg6IHRhcmdldC1wcGMvdHJhbnNsYXRlLmMNCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT0NClJDUyBmaWxlOiAvc291cmNlcy9xZW11L3FlbXUvdGFyZ2V0 LXBwYy90cmFuc2xhdGUuYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTE1 DQpkaWZmIC11IC1yMS4xMTUgdHJhbnNsYXRlLmMNCi0tLSB0YXJnZXQtcHBj L3RyYW5zbGF0ZS5jCTI0IE5vdiAyMDA3IDAyOjAzOjU1IC0wMDAwCTEuMTE1 DQorKysgdGFyZ2V0LXBwYy90cmFuc2xhdGUuYwkxMCBKYW4gMjAwOCAxMzo1 NDozNiAtMDAwMA0KQEAgLTI4MTEsOCArMjgxMSw2IEBADQogI2VuZGlmDQog ICAgICAgICAgICAgZ2VuX29wX2JfVDEoKTsNCiAgICAgICAgIGdlbl9vcF9z ZXRfVDAoKGxvbmcpdGIgKyBuKTsNCi0gICAgICAgIGlmIChjdHgtPnNpbmds ZXN0ZXBfZW5h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