From: Ralf Baechle <ralf@linux-mips.org>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@linux-mips.org
Subject: Re: Tester with IP27/IP30 needed
Date: Wed, 16 Jan 2008 16:03:51 +0000 [thread overview]
Message-ID: <20080116160351.GA9664@linux-mips.org> (raw)
In-Reply-To: <20080115181812.GA14816@linux-mips.org>
On Tue, Jan 15, 2008 at 06:18:12PM +0000, Ralf Baechle wrote:
So I sent an NMI to the IP27 and used the POD to extract as much information
as I could. Below the disassembly of the code. The addresses are looking
a little odd because I had to disassembly at the XKPHYS address even though
the code was actually executing in userspace.
1B 000: 0xa80000007bd5f008: 8c658b98 lw a1,0x8b98(v1)
1B 000: 0xa80000007bd5f00c: 24060001 li a2,0x1
1B 000: 0xa80000007bd5f010: 34a50001 ori a1,a1,0x1
1B 000: 0xa80000007bd5f014: 00003821 move a3,zero
1B 000: 0xa80000007bd5f018: 2402108e li v0,0x108e
1B 000: 0xa80000007bd5f01c: 0000000c syscall
1B 000: 0xa80000007bd5f020: 1000ffd3 b 0xa80000007bd5ef70
1B 000: 0xa80000007bd5f024: 00000000 nop
1B 000: 0xa80000007bd5f028: 3c1c0010 lui gp,0x10
1B 000: 0xa80000007bd5f02c: 279ce938 addiu gp,gp,0xffffffe938
1B 000: 0xa80000007bd5f030: 0399e021 addu gp,gp,t9
1B 000: 0xa80000007bd5f034: 27bdffd8 addiu sp,sp,0xffffffffd8
1B 000: 0xa80000007bd5f038: afbf0020 sw ra,0x20(sp)
1B 000: 0xa80000007bd5f03c: afb1001c sw s1,0x1c(sp)
1B 000: 0xa80000007bd5f040: afb00018 sw s0,0x18(sp)
1B 000: 0xa80000007bd5f044: afbc0010 sw gp,0x10(sp)
1B 000: 0xa80000007bd5f048: 7c03e83b op1f v1,zero,0xfffffffff
1B 000: fffe83b
1B 000: 0xa80000007bd5f04c: 8f848018 lw a0,0x8018(gp)
EPC is pointing to this lw so the subsequent instruction from the op1f which
is rdhwr $29. ErrorEPC is pointing further down so it seems we must have
returned from the emulation.
1B 000: 0xa80000007bd5f050: 24718b90 addiu s1,v1,0xffffff8b90
1B 000: 0xa80000007bd5f054: 24901710 addiu s0,a0,0x1710
1B 000: 0xa80000007bd5f058: 8e020008 lw v0,0x8(s0)
1B 000: 0xa80000007bd5f05c: 00000000 nop
1B 000: 0xa80000007bd5f060: 1051000d beq v0,s1,0xa8000000f098
1B 000: 0xa80000007bd5f064: 00001821 move v1,zero
1B 000: 0xa80000007bd5f068: 24020001 li v0,0x1
1B 000: 0xa80000007bd5f06c: c0851710 ll a1,0x1710(a0)
1B 000: 0xa80000007bd5f070: 14a30006 bne a1,v1,0xa8000000f08c
1B 000: 0xa80000007bd5f074: 00003021 move a2,zero
1B 000: 0xa80000007bd5f078: 00403021 move a2,v0
1B 000: 0xa80000007bd5f07c: e0861710 sc a2,0x1710(a0)
1B 000: 0xa80000007bd5f080: 10c0fffa beq a2,zero,0xa800d5f06c
And this is where the ErrorEPC is pointing.
1B 000: 0xa80000007bd5f084: 00000000 nop
1B 000: 0xa80000007bd5f088: 0000000f sync
1B 000: 0xa80000007bd5f08c: 10c0000a beq a2,zero,0xa800d5f0b8
1B 000: 0xa80000007bd5f090: 00000000 nop
Ralf
prev parent reply other threads:[~2008-01-16 16:03 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 11:24 Tester with IP27/IP30 needed Thomas Bogendoerfer
2008-01-15 11:27 ` Florian Lohoff
2008-01-17 0:40 ` Thomas Bogendoerfer
2008-01-17 8:27 ` Florian Lohoff
2008-01-17 10:00 ` Thomas Bogendoerfer
2008-01-17 15:10 ` Ralf Baechle
2008-01-19 19:12 ` Thomas Bogendoerfer
2008-01-17 11:59 ` Ralf Baechle
2008-01-22 15:20 ` Kumba
2008-01-22 15:49 ` Ralf Baechle
2008-01-26 3:12 ` Kumba
2008-01-26 14:39 ` Thomas Bogendoerfer
2008-02-02 22:08 ` Kumba
2008-02-03 2:16 ` Ralf Baechle
2008-02-03 6:27 ` Florian Lohoff
2008-02-05 7:11 ` Kumba
2008-02-05 12:22 ` Thiemo Seufer
2008-02-06 3:25 ` Kumba
2008-02-06 8:56 ` Florian Lohoff
2008-02-06 14:22 ` Ralf Baechle
2008-02-08 17:23 ` Florian Lohoff
2008-02-08 19:05 ` Thiemo Seufer
2008-02-08 19:29 ` Ralf Baechle
2008-02-07 5:30 ` Kumba
2008-02-05 15:23 ` Ralf Baechle
2008-01-23 8:47 ` peter fuerst
2008-01-15 13:11 ` Ralf Baechle
2008-01-15 13:53 ` Ralf Baechle
2008-01-15 18:18 ` Ralf Baechle
2008-01-16 16:03 ` Ralf Baechle [this message]
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=20080116160351.GA9664@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=tsbogend@alpha.franken.de \
/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