[Visium] Disassemble stop instruction correctly
Eric Botcazou
ebotcazou@adacore.com
Tue Oct 17 17:04:00 GMT 2017
Hi,
the disassembler doesn't print the operands of the stop instructions:
Breakpoint 1, _exit (code=6)
at /home/eric/cvs/newlib-cygwin/libgloss/visium/syscalls.c:119
119 asm volatile ("stop 0,%0" : : "r" (code & 0xff));
(gdb) disass
Dump of assembler code for function _exit:
=> 0x00047a00 <+0>: asl.l r1,r1,24
0x00047a04 <+4>: lsr.l r1,r1,24
0x00047a08 <+8>: stop
0x00047a0c <+12>: brr tr,+0
0x00047a10 <+16>: nop
End of assembler dump.
Fixed thusly, tested for visium-elf. While I was at it, I realized that there
is no binutils maintainer listed for Visium (I'm the GCC maintainer).
OK for the mainline?
2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
binutils/
* MAINTAINERS: Add myself as Visium maintainer.
2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
opcodes/
* visium-dis.c (disassem_class1) <case 0>: Print the operands.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 983 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171017/37c69634/attachment.bin>
More information about the Binutils
mailing list