Sorry about that disinformation. The man page doesn't provide the necessary details - but running "objdump -H" does (and the -H help option *is* called out in the man page). ----- Original Message ----- From: "Fuxin Zhang" <fxzhang@xxxxxxxxx> To: "Kevin D. Kissell" <kevink@xxxxxxxx> Sent: Thursday, October 14, 2004 12:56 Subject: Re: Strange instruction > > > Kevin D. Kissell wrote: > > >In all fairness, the syntax is in he "man" page for objdump, so > > > > > The man page does mention the option -m > > -m machine > --architecture=machine > Specify the architecture to use when disassembling object > files. > This can be useful when disassembling object files which > do not > describe architecture information, such as S-records. You > can list > the available architectures with the -i option. > but it does not mention how to specify a machine, although I did > find it in > objdump --help later:) > > debian GNU objdump 2.14.90.0.7 20031029 > > >one doesn't really have to read the sources to figure it out! > >But the question of whether the default mode of objdump > >should be the minimum 32-bit legacy instruction set is a good > >one. Not many currenly used MIPS processors are MIPS I. > >I understand that disassembling advanced instructions that are > >not supported by a particular CPU as if they were normal can > >cause confusion and error, but perhaps the default would be to > >disassmble everything as MIPS64 rev 2, but with all instructions > >that are not in MIPS I flagged somehow, perhaps with a message > >after the assembly code to indicate the extended ISA level? e.g. > > > >a0000650: 07400003 bltz k0,a0000660 <nmi_handler+0x1c> > >a0000654: 03a0d82d move k1,sp *mips3* > >a0000658: 3c1ba020 lui k1,0xa020 > > > >Where specifying -m mips:isa64 or -m mips:4000 would suppress the warnings > >on MIPS64 or MIPS III instructions respectively. Just a thought... > > > >----- Original Message ----- > >From: "Fuxin Zhang" <fxzhang@xxxxxxxxx> > >To: "Dmitriy Tochansky" <toch@xxxxxxxxx> > >Cc: <linux-mips@xxxxxxxxxxxxxx> > >Sent: Thursday, October 14, 2004 10:45 > >Subject: Re: Strange instruction > > > > > > > > > >>objdump -d -mmips:4000 vmlinux to force it regconize all MIPS III > >>instructions > >> > >>I think this option should be renamed( i had try -mips3 -mmips3 etc. > >>before i find it > >>by reading the source code) > >> or the default should be changed. > >> > >>Dmitriy Tochansky wrote: > >> > >> > >> > >>>Hello! > >>> > >>>When starts kernel for my au1500 board reseting board. After disassembling I found instruction > >>>which reseting board. Here is few strings of "mipsel-linux-objdump -D vmlinux" output: > >>> > >>>--- > >>> > >>>a0000650: 07400003 bltz k0,a0000660 <nmi_handler+0x1c> > >>>a0000654: 03a0d82d 0x3a0d82d > >>>a0000658: 3c1ba020 lui k1,0xa020 > >>> > >>>--- > >>> > >>>Base address changed by me. > >>> > >>>What is A0000654? There is board resets. > >>> > >>> > > > > > > > > >