qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] PPC debugging broken


From: Blue Swirl
Subject: [Qemu-devel] PPC debugging broken
Date: Fri, 13 Feb 2009 22:30:27 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]