opcodes/loongarch: style disassembled address offsets as such
authorWANG Xuerui <git@xen0n.name>
Thu, 29 Jun 2023 16:35:01 +0000 (00:35 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 30 Jun 2023 02:18:00 +0000 (10:18 +0800)
commitd04d3bb4a7a244fc8b49a721474cf4388240ca36
treec79a8a6996fcf805201912aecb3e0bf30cf27c50
parent1b9ea633cb5c3b2071510efcb9f3cd3da2e634e0
opcodes/loongarch: style disassembled address offsets as such

Add a modifier char 'o' telling the disassembler to print the immediate
using the address offset style, and mark the memory access instructions'
offset operands as such.

opcodes/ChangeLog:

* loongarch-dis.c (dis_one_arg): Style disassembled address
offsets as such when the operand has a modifier char 'o'.
* loongarch-opc.c: Add 'o' to operands that represent address
offsets.

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