[PATCH v1] Microblaze: Widen mask used in opcodes/microblaze-dis.c

Gopi Kumar Bulusu gopi@sankhya.com
Wed Jan 1 05:26:26 GMT 2025


namaskaram,

Instead of using 0xFFFF0000,
or with (~0xFFFF) to sign extend negative 16-bit value
and with (~0xFFFF) to extract higher order address bits

While testing gdbserver support this was found to cause issues with
software single stepping due to incorrect target address computation in gdb.

This is a preparatory patch ahead of gdbserver support for Microblaze

Files changed:
opcodes/ChangeLog
opcodes/microblaze-dis.c

Build/Test:
Built for baremetal (microblazeel-elf) target
Tested with gas/ld/binutils tests (make check)
No regressions found

dhanyavadam
gopi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250101/cbaa6b15/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MicroBlaze-Widen-mask-used-in-opcodes-microblaze-dis.patch
Type: application/x-patch
Size: 3566 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250101/cbaa6b15/attachment.bin>


More information about the Binutils mailing list