From: Marius Groeger <mgroeger@sysgo.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Single stepping for PPC broken!
Date: Wed, 9 Jan 2008 13:19:34 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0801091312170.24129@localhost> (raw)
In-Reply-To: <Pine.LNX.4.64.0801090849090.6836@localhost>
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:
/ # gdb testprg
GNU gdb 6.3.50.20050810
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".
(gdb) b main
Breakpoint 1 at 0x10000520: file testprg.c, line 26.
(gdb) run
Starting program: testprg
Breakpoint 1, main () at testprg.c:26
26 testprg.c: No such file or directory.
in testprg.c
(gdb) disassemble
Dump of assembler code for function main:
0x1000050c <main+0>:stwu r1,-32(r1)
0x10000510 <main+4>:mflr r0
0x10000514 <main+8>:stw r31,28(r1)
0x10000518 <main+12>:stw r0,36(r1)
0x1000051c <main+16>:mr r31,r1
0x10000520 <main+20>:lis r9,4096
0x10000524 <main+24>:addi r3,r9,2376
0x10000528 <main+28>:crclr 4*cr1+eq
0x1000052c <main+32>:bl 0x10010ad8 <printf>
0x10000530 <main+36>:lis r9,4096
...
(gdb) stepi
0x10000524 26 in testprg.c
(gdb) stepi
0x10000528 26 in testprg.c
(gdb) stepi
0x1000052c 26 in testprg.c
(gdb) stepi
<<< QEMU HANGS! >>>
> Any ideas? Did perhaps the PPC440 additions add some regression here?
?!
Regards and TIA,
Marius
--
Marius Groeger <mgroeger@sysgo.com>
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
next prev parent reply other threads:[~2008-01-09 12:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 7:59 [Qemu-devel] Single stepping for PPC broken? Marius Groeger
2008-01-09 12:19 ` Marius Groeger [this message]
2008-01-10 13:57 ` [PATCH][Qemu-devel] Single stepping for PPC broken! Marius Groeger
2008-02-11 23:22 ` Rob Landley
2008-02-13 8:46 ` Marius Groeger
2008-02-13 13:44 ` Daniel Jacobowitz
2008-02-13 15:52 ` Marius Groeger
2008-02-13 16:19 ` Daniel Jacobowitz
2008-02-14 7:36 ` Marius Groeger
2008-03-11 23:16 ` Jason Wessel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0801091312170.24129@localhost \
--to=mgroeger@sysgo.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).