From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LY5Zo-0003Re-1y for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:28:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LY5Zn-0003RE-9v for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:27:59 -0500 Received: from [199.232.76.173] (port=48824 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LY5Zn-0003R9-6t for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:27:59 -0500 Received: from mail-fx0-f20.google.com ([209.85.220.20]:63007) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LY5Zl-0000m9-Dm for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:27:58 -0500 Received: by fxm13 with SMTP id 13so4134270fxm.10 for ; Fri, 13 Feb 2009 13:27:55 -0800 (PST) MIME-Version: 1.0 Date: Fri, 13 Feb 2009 23:27:55 +0200 Message-ID: From: Blue Swirl Content-Type: multipart/mixed; boundary=001636c5a45f9be1c60462d382af Subject: [Qemu-devel] [PATCH] Fix PPC branch insn debugging 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" --001636c5a45f9be1c60462d382af Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, With this patch applied, single stepping works even from the first instruction (bl 0xfff01704) in 0xfffffffc. For some reason, the first instruction doesn't get disassembled. IN: OP: movi_i32 lr,$0x0 movi_i32 nip,$0xfff01704 movi_i32 tmp0,$0x10002 movi_i64 tmp1,$raise_exception call tmp1,$0x0,$0,tmp0 exit_tb $0x0 IN: 0xfff01704: li r0,0 OP: movi_i32 r0,$0x0 movi_i32 nip,$0xfff01708 movi_i32 nip,$0xfff01708 movi_i32 tmp0,$0x10002 movi_i64 tmp1,$raise_exception call tmp1,$0x0,$0,tmp0 exit_tb $0x0 --001636c5a45f9be1c60462d382af Content-Type: plain/text; name="fix_ppc_branch_debug.diff" Content-Disposition: attachment; filename="fix_ppc_branch_debug.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fr5d9syi SW5kZXg6IHFlbXUvdGFyZ2V0LXBwYy90cmFuc2xhdGUuYwo9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBxZW11Lm9y aWcvdGFyZ2V0LXBwYy90cmFuc2xhdGUuYwkyMDA5LTAyLTEzIDIwOjM2OjU1LjAwMDAwMDAwMCAr MDAwMAorKysgcWVtdS90YXJnZXQtcHBjL3RyYW5zbGF0ZS5jCTIwMDktMDItMTMgMjE6MTk6MjUu MDAwMDAwMDAwICswMDAwCkBAIC0yNzgsNyArMjc4LDkgQEAKIHN0YXRpYyBhbHdheXNfaW5saW5l IHZvaWQgZ2VuX2RlYnVnX2V4Y2VwdGlvbiAoRGlzYXNDb250ZXh0ICpjdHgpCiB7CiAgICAgVENH dl9pMzIgdDA7Ci0gICAgZ2VuX3VwZGF0ZV9uaXAoY3R4LCBjdHgtPm5pcCk7CisKKyAgICBpZiAo Y3R4LT5leGNlcHRpb24gIT0gUE9XRVJQQ19FWENQX0JSQU5DSCkKKyAgICAgICAgZ2VuX3VwZGF0 ZV9uaXAoY3R4LCBjdHgtPm5pcCk7CiAgICAgdDAgPSB0Y2dfY29uc3RfaTMyKEVYQ1BfREVCVUcp OwogICAgIGdlbl9oZWxwZXJfcmFpc2VfZXhjZXB0aW9uKHQwKTsKICAgICB0Y2dfdGVtcF9mcmVl X2kzMih0MCk7Cg== --001636c5a45f9be1c60462d382af--