commit | 2bbe1079021228795905938a4c4ce5f71575a20b | [log] [tgz] |
---|---|---|
author | Xin Wang <yw987194828@gmail.com> | Fri Sep 06 08:54:07 2024 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Sat Sep 07 10:06:03 2024 +0800 |
tree | eff47b1461678ff1d82aae76c02fe8798a83ce90 | |
parent | 4723415cda09b09dbac743f30f877355a49fdee2 [diff] |
Add macros to get opcode of instructions approriately LoongArch: Add macros to get opcode and register of instructions appropriately Currently, we get opcode of an instruction by manipulate the binary with it's mask, it's a bit of a pain. Now a macro is defined to do this and a macro to get the RD and RJ registers which is applicable to most instructions of LoongArch are added.