target/loongarch: Disassemble jirl properly
commitc2b618a8c1acb899b56eb8b2f1354da1f69474ea
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Jan 2023 00:32:38 +0000 (17 14:32 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Jan 2023 01:36:36 +0000 (23 15:36 -1000)
tree077daae3e46badd879aa3748eda529191a0f51f5
parent2e0d91513deb9bf0e5a1b2e0f574d999df3ebd99
target/loongarch: Disassemble jirl properly

While jirl shares the same instruction format as bne etc,
it is not assembled the same.  In particular, rd is printed
first not second and the immediate is not pc-relative.

Decode into the arg_rr_i structure, which prints correctly.
This changes the "offs" member to "imm", to update translate.

Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/disas.c
target/loongarch/insn_trans/trans_branch.c.inc
target/loongarch/insns.decode