diff options
author | Alan Modra <amodra@gmail.com> | 2019-04-04 18:19:03 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-04-05 12:20:49 +1030 |
commit | 66e85460855837af3a3b0224f7846c436cc7d1e0 (patch) | |
tree | 4dcec59ba36704c2ece240e1eb52d880ea3bd88d /opcodes/ChangeLog | |
parent | c2b1c2754526acff8aae2fe8f5a56c2dd11d0b7f (diff) | |
download | gdb-66e85460855837af3a3b0224f7846c436cc7d1e0.zip gdb-66e85460855837af3a3b0224f7846c436cc7d1e0.tar.gz gdb-66e85460855837af3a3b0224f7846c436cc7d1e0.tar.bz2 |
PowerPC bc extended branch mnemonics and "y" hints
This patch fixes a problem with disassembly of branch instructions
for processors complying with PowerPC ISA versions prior to version
2.0, ie. those that use "y" bit branch taken hints. Many of the
extended bcctr and bclr mnemonics that should have disassembled with a
"-" suffix, ie. not taken, did not display the "-" due to the ordering
in powerpc_opcodes. I believe it's been that way from the original
85dcf36d72b commit of ppc-opc.c.
I've also added a BH field (optional) to a few opcodes. This gives
better disassembly in raw mode, showing the branch taken hint in the
mnemonic as is done for bc. It would be reasonable to add a BH
field to all bcctr, bclr, and bctar extended mnemonics but that runs
into a small difficulty: Currently we print all or none of the
optional operands. That means for example that "bgectr cr2" would
display as "bgectr cr2,0" if a BH field is added to bgectr.
* ppc-opc.c (XLBH_MASK): Subtract off BH field from BB_MASK.
(powerpc_opcodes): Reorder bcctr and bclr extended mnemonics
to favour printing of "-" branch hint when using the "y" bit.
Allow BH field on bc{ctr,lr,tar}{,l}{-,+}.
Diffstat (limited to 'opcodes/ChangeLog')
-rw-r--r-- | opcodes/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5588f51..3a1895b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,12 @@ 2019-04-05 Alan Modra <amodra@gmail.com> + * ppc-opc.c (XLBH_MASK): Subtract off BH field from BB_MASK. + (powerpc_opcodes): Reorder bcctr and bclr extended mnemonics + to favour printing of "-" branch hint when using the "y" bit. + Allow BH field on bc{ctr,lr,tar}{,l}{-,+}. + +2019-04-05 Alan Modra <amodra@gmail.com> + * ppc-dis.c (print_insn_powerpc): Delay printing spaces after opcode until first operand is output. |