[RFC] Introduce MIPS disassembler library for barebox
Sascha Hauer
s.hauer at pengutronix.de
Fri Jul 24 01:06:34 PDT 2015
Hi Alexander,
On Thu, Jul 23, 2015 at 06:53:08PM +0300, Alexander Smirnov wrote:
> This commit imports disassembler for mips from qemu/binutils.
>
> Here is a sample disassembler output:
>
> barebox:/ disasm 0xbfc00018+0x20
> bfc00018: 401a6000 mfc0 k0,$12
> bfc0001c: 241bfffe li k1,-2
> bfc00020: 035bd024 and k0,k0,k1
> bfc00024: 409a6000 mtc0 k0,$12
> bfc00028: 3c09b400 lui t1,0xb400
> bfc0002c: 3c08df00 lui t0,0xdf00
> bfc00030: ad280068 sw t0,104(t1)
> bfc00034: 3c09bbe0 lui t1,0xbbe0
>
> TODOs:
>
> * -a option (select cpu architecture) does not work properly;
> * -s option (select binary file for disassembly) does not work properly .
>
> This commit demonstrate simple way for importing disassembler from qemu/binutils:
> disassemblers for other architectures (e.g. ARM) can be easely imported.
This is nice and somehow cool to be able to just disassemble some code
under barebox. However, it's quite a bunch of code imported from another
project and we'll need even more code for other architectures. This code
needs maintenance to stay useful, so I am not very fond of merging it.
What is your usecase for this? Normally I would transfer the area I'd
like to disassemble via tftp or whatever to a host and disassemble it
there, but that it something that I need very seldomly.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list