opcodes/loongarch: implement style support in the disassembler
authorWANG Xuerui <git@xen0n.name>
Thu, 29 Jun 2023 16:35:00 +0000 (00:35 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 30 Jun 2023 02:17:59 +0000 (10:17 +0800)
commit1b9ea633cb5c3b2071510efcb9f3cd3da2e634e0
tree9748f956396f69d50c0bbd02e53898e47b15bddf
parent22be1ca342fb4273fb1b9de2189612398ceff579
opcodes/loongarch: implement style support in the disassembler

Update the LoongArch disassembler to supply style information to the
disassembler output. The output formatting remains unchanged.

opcodes/ChangeLog:

* disassemble.c: Mark LoongArch as created_styled_output=true.
* loongarch-dis.c (dis_one_arg): Use fprintf_styled_func
throughout with proper styles.

Signed-off-by: WANG Xuerui <git@xen0n.name>
opcodes/disassemble.c
opcodes/loongarch-dis.c