qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] PPC debugging broken
@ 2009-02-13 20:30 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-02-13 20:30 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

It looks like debugging confuses PPC branch code generation.

For example, I'm doing single stepping from GDB:
IN: cmdline_prompt
0xfff158a0:  b       0xfff15960
(Unconditional branch to 0xfff15960)
OP:
 movi_i32 nip,$0xfff15960
(OK, branch)
 movi_i32 nip,$0xfff158a4
(WTF?)
 movi_i32 tmp0,$0x10002
 movi_i64 tmp1,$raise_exception
 call tmp1,$0x0,$0,tmp0
 exit_tb $0x0

(Execution continues on $nip + 4 instead of branch target)
IN: cmdline_prompt
0xfff158a4:  lis     r9,-12

OP:
 movi_i32 r9,$0xfff40000
 movi_i32 nip,$0xfff158a8
 movi_i32 nip,$0xfff158a8
 movi_i32 tmp0,$0x10002
 movi_i64 tmp1,$raise_exception
 call tmp1,$0x0,$0,tmp0
 exit_tb $0x0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-13 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 20:30 [Qemu-devel] PPC debugging broken Blue Swirl

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).